Skip to content

Commit

Permalink
* Remove the Auto Versioning on Each build + #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Wagnerp committed Mar 27, 2021
1 parent fa65dce commit c31a80e
Show file tree
Hide file tree
Showing 10 changed files with 108 additions and 267 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
Only use these packages if you require to target a specific framework version between .NET 3.5 and .NET 5. Please note that these packages are larger than the lite packages.

## Lite
These packages supports only .NET Framework >= 4.5 and .NET Core 3.1/.NET 5.
These packages only support .NET Framework >= 4.5 and .NET Core 3.1/.NET 5.

=======

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<PropertyGroup>
<PackageId>Krypton.Docking.Canary</PackageId>
<Description>A update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the docking module.</Description>
<Description>An update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the docking module.</Description>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -61,24 +61,7 @@
<NoWarn>1701;1702</NoWarn>
</PropertyGroup>
<PropertyGroup>
<ShouldCreateLogs>True</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>True</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>True</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>True</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>None.None.Increment.None</AssemblyVersionSettings>
<AssemblyFileVersionSettings>None.None.Increment.None</AssemblyFileVersionSettings>
<AssemblyInfoVersionSettings>None.None.Increment.None</AssemblyInfoVersionSettings>
<UpdatePackageVersion>False</UpdatePackageVersion>
<AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
<InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
<AssemblyVersion>6.1.2106</AssemblyVersion>
<FileVersion>6.1.2106</FileVersion>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<PropertyGroup>
<PackageId>Krypton.Navigator.Canary</PackageId>
<Description>A update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the navigator module.</Description>
<Description>An update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the navigator module.</Description>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -74,24 +74,7 @@
<NoWarn>1701;1702</NoWarn>
</PropertyGroup>
<PropertyGroup>
<ShouldCreateLogs>True</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>True</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>True</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>True</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>None.None.Increment.None</AssemblyVersionSettings>
<AssemblyFileVersionSettings>None.None.Increment.None</AssemblyFileVersionSettings>
<AssemblyInfoVersionSettings>None.None.Increment.None</AssemblyInfoVersionSettings>
<UpdatePackageVersion>False</UpdatePackageVersion>
<AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
<InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
<AssemblyVersion>6.1.2106</AssemblyVersion>
<FileVersion>6.1.2106</FileVersion>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<PropertyGroup>
<PackageId>Krypton.Ribbon.Canary</PackageId>
<Description>A update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the ribbon module.</Description>
<Description>An update to Component factory's krypton toolkit to support .NET Core, .NET 5 and the latest .NET 3.5/4.x framework. This is the ribbon module.</Description>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -99,24 +99,7 @@
<NoWarn>1701;1702</NoWarn>
</PropertyGroup>
<PropertyGroup>
<PrimaryVersionType>AssemblyVersionAttribute</PrimaryVersionType>
<ShouldCreateLogs>True</ShouldCreateLogs>
<AdvancedSettingsExpanded>True</AdvancedSettingsExpanded>
<UpdateAssemblyVersion>True</UpdateAssemblyVersion>
<UpdateAssemblyFileVersion>True</UpdateAssemblyFileVersion>
<UpdateAssemblyInfoVersion>True</UpdateAssemblyInfoVersion>
<AssemblyVersionSettings>None.None.Increment.None</AssemblyVersionSettings>
<AssemblyFileVersionSettings>None.None.Increment.None</AssemblyFileVersionSettings>
<AssemblyInfoVersionSettings>None.None.Increment.None</AssemblyInfoVersionSettings>
<UpdatePackageVersion>False</UpdatePackageVersion>
<AssemblyInfoVersionType>SettingsVersion</AssemblyInfoVersionType>
<InheritWinAppVersionFrom>None</InheritWinAppVersionFrom>
<AssemblyVersion>6.1.2106</AssemblyVersion>
<FileVersion>6.1.2106</FileVersion>
</PropertyGroup>
<ProjectExtensions>
<VisualStudio>
<UserProperties BuildVersion_StartDate="2000/1/1" />
</VisualStudio>
</ProjectExtensions>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Krypton.Toolkit.Properties;
using System;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
Expand All @@ -9,11 +9,15 @@

namespace Krypton.Toolkit
{
[Description(""), ToolboxBitmap(typeof(ListView))]
/// <summary>
/// A Kryptonised listview (experimental).
/// </summary>
/// <seealso cref="System.Windows.Forms.ListView" />
[Description("A Kryptonised listview (experimental)."), ToolboxBitmap(typeof(ListView)), ToolboxItem(true)]
public class KryptonListView : ListView
{
#region Designer Code
//private ImageList ilCheckBoxes;
private ImageList ilCheckBoxes;
private System.ComponentModel.IContainer components;
private ImageList ilHeight;

Expand All @@ -27,12 +31,12 @@ private void InitializeComponent()
//
// ilCheckBoxes
//
/*this.ilCheckBoxes.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilCheckBoxes.ImageStream")));
this.ilCheckBoxes.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilCheckBoxes.ImageStream")));
this.ilCheckBoxes.TransparentColor = System.Drawing.Color.Transparent;
this.ilCheckBoxes.Images.SetKeyName(0, "XpNotChecked.gif");
this.ilCheckBoxes.Images.SetKeyName(1, "XpChecked.gif");
this.ilCheckBoxes.Images.SetKeyName(2, "VistaNotChecked.png");
this.ilCheckBoxes.Images.SetKeyName(3, "VistaChecked.png");*/
this.ilCheckBoxes.Images.SetKeyName(3, "VistaChecked.png");
//
// ilHeight
//
Expand Down Expand Up @@ -328,7 +332,7 @@ public KryptonListView()

InitializeComponent();

//_designMode = (Process.GetCurrentProcess().ProcessName == "devenv");
_designMode = (Process.GetCurrentProcess().ProcessName == "devenv");

if (SmallImageList == null)
{
Expand All @@ -338,6 +342,8 @@ public KryptonListView()
#endregion

#region DrawItem and SubItem
/// <summary>Raises the <see cref="E:System.Windows.Forms.ListView.DrawItem">DrawItem</see> event.</summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.DrawListViewItemEventArgs">DrawListViewItemEventArgs</see> that contains the event data.</param>
protected override void OnDrawItem(DrawListViewItemEventArgs e)
{
//set font
Expand Down Expand Up @@ -412,6 +418,8 @@ protected override void OnDrawItem(DrawListViewItemEventArgs e)
}
}

/// <summary>Raises the <see cref="E:System.Windows.Forms.ListView.DrawSubItem">DrawSubItem</see> event.</summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.DrawListViewSubItemEventArgs">DrawListViewSubItemEventArgs</see> that contains the event data.</param>
protected override void OnDrawSubItem(DrawListViewSubItemEventArgs e)
{
//set font
Expand Down Expand Up @@ -467,23 +475,31 @@ protected override void OnDrawSubItem(DrawListViewSubItemEventArgs e)
//CheckState = "V";
if (_enableVistaCheckBoxes == true)
{
Check = Properties.Resources.VistaChecked;
Check = ilCheckBoxes.Images[3];

//Check = Properties.Resources.VistaChecked;
}
else
{
Check = Resources.XPChecked;
Check = ilCheckBoxes.Images[1];

//Check = Resources.XPChecked;
}
}
else
{
//CheckState = "O";
if (_enableVistaCheckBoxes == true)
{
Check = Resources.VistaNotChecked;
Check = ilCheckBoxes.Images[2];

//Check = Resources.VistaNotChecked;
}
else
{
Check = Resources.XPNotChecked;
Check = ilCheckBoxes.Images[0];

//Check = Resources.XPNotChecked;
}
}

Expand Down Expand Up @@ -739,6 +755,11 @@ private void KryptonRendererHeader(ref Graphics g, ref Rectangle rect, bool bHot
}
}

/// <summary>Internal renderer header.</summary>
/// <param name="g">The g.</param>
/// <param name="rect">The rect.</param>
/// <param name="bHot">if set to <c>true</c> [b hot].</param>
/// <param name="e">The <see cref="DrawListViewColumnHeaderEventArgs" /> instance containing the event data.</param>
private void InternalRendererHeader(ref Graphics g, ref Rectangle rect, bool bHot, ref DrawListViewColumnHeaderEventArgs e)
{
//set colors
Expand Down Expand Up @@ -775,7 +796,7 @@ private void InternalRendererHeader(ref Graphics g, ref Rectangle rect, bool bHo
if (!_enableHeaderGlow)
g.FillRectangle(brush, rect);
else
DrawingMethods.DrawListViewHeader(g, rect, gradStartColor, gradMiddleColor, 90F);
ListViewDrawingMethods.DrawListViewHeader(g, rect, gradStartColor, gradMiddleColor, 90F);
}

//DrawBorder
Expand All @@ -793,6 +814,9 @@ private void InternalRendererHeader(ref Graphics g, ref Rectangle rect, bool bHo
}


/// <summary>Headers the pressed offset.</summary>
/// <param name="rect">The rect.</param>
/// <param name="State">The state.</param>
private void HeaderPressedOffset(ref Rectangle rect, ListViewItemStates State)
{
//min rect height for SystemColors (Theme disabled)
Expand All @@ -816,6 +840,8 @@ private void HeaderPressedOffset(ref Rectangle rect, ListViewItemStates State)
#endregion

#region Draw Header
/// <summary>Raises the <see cref="E:System.Windows.Forms.ListView.DrawColumnHeader">DrawColumnHeader</see> event.</summary>
/// <param name="e">A <see cref="T:System.Windows.Forms.DrawListViewColumnHeaderEventArgs">DrawListViewColumnHeaderEventArgs</see> that contains the event data.</param>
protected override void OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs e)
{
if (!DesignMode)
Expand Down Expand Up @@ -930,6 +956,11 @@ protected override void OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs e)
#endregion

#region Helper Subs
/// <summary>Converts the horizontal alignment to string alignment.</summary>
/// <param name="input">The input.</param>
/// <returns>
/// <br />
/// </returns>
public StringAlignment ConvertHorizontalAlignmentToStringAlignment(HorizontalAlignment input)
{

Expand Down

0 comments on commit c31a80e

Please sign in to comment.