Skip to content

Commit

Permalink
Merge pull request #213 from Krypton-Suite/165-feature-request-need-v…
Browse files Browse the repository at this point in the history
…90-nee-v85-v80-installer-created

I need to tag for the installer publish
  • Loading branch information
Smurf-IV authored Nov 30, 2024
2 parents 6dac5d9 + 4292cb4 commit 790fc67
Show file tree
Hide file tree
Showing 446 changed files with 14,292 additions and 16,836 deletions.
20 changes: 9 additions & 11 deletions Source/.editorconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[*Assembly*.cs]
#Warning CS0105 The using directive for 'System' appeared previously in this namespace Krypton.Toolkit 2019 (net5.0-windows)
dotnet_diagnostic.CS0105.severity = None


[PlatformInvoke.cs]
#Message CA1069 The enum member 'LINELEFT' has the same constant value '0' as member 'LINEUP'
dotnet_diagnostic.CA1069.severity = None
Expand All @@ -13,18 +10,19 @@ dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true
dotnet_code_quality.enable_platform_analyzer_on_pre_net5_target=true

# Naming rule violation: These words must begin with upper case characters: textBoxResponse_KeyDown
dotnet_diagnostic.IDE1006.severity = silent

# Remove unnecessary suppression
dotnet_diagnostic.IDE0079.severity = silent
# Use primary constructor
dotnet_diagnostic.IDE0290.severity = silent
# Naming rule violation: These words must begin with upper case characters: textBoxResponse_KeyDown
dotnet_diagnostic.IDE1006.severity = silent

# This call site is reachable on all platforms. 'KryptonRibbonGroupButton.Checked' is only supported on: 'Windows' 7.0 and later.
dotnet_diagnostic.CA1416.severity = None
# CS1591: Missing XML comment for publicly visible type or member
dotnet_diagnostic.CS1591.severity = silent

#warning CA1416: This call site is reachable on all platforms. 'KryptonRibbonGroupButton.Checked' is only supported on: 'Windows' 7.0 and later.
dotnet_diagnostic.CA1416.severity = None

#Warning CS8622 Nullability of reference types in type of parameter 'sender' of ####
# Nullability of reference types in type of parameter 'sender' of ####
dotnet_diagnostic.CS8622.severity = Warning

dotnet_diagnostic.WFO1000.severity = Warning
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
*/
#endregion

using System.Windows.Forms;

namespace DockingCustomized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
*/
#endregion

using System.Windows.Forms;

namespace DockingCustomized
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
*/
#endregion

using System;
using System.Drawing;
using System.Windows.Forms;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>net462;net47;net471;net472;net48;net481;net8.0-windows;net9.0-windows</TargetFrameworks>
<TargetFrameworks>net48;net8.0-windows;net9.0-windows</TargetFrameworks>
<OutputType>WinExe</OutputType>
<RootNamespace>DockingCustomized</RootNamespace>
<AssemblyName>Docking Customized</AssemblyName>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions Source/Krypton Docking Examples/Docking Customized/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*
*/
#endregion

using System;
using System.Drawing;
using System.Windows.Forms;
Expand Down Expand Up @@ -53,7 +54,7 @@ private KryptonPage NewDocument()
private KryptonPage NewPage(string name, int image, Control content)
{
// Create new page with title and image
KryptonPage p = new KryptonPage
var p = new KryptonPage
{
Text = name + _count.ToString(),
TextTitle = name + _count.ToString(),
Expand Down Expand Up @@ -113,10 +114,10 @@ private void kryptonDockingManager_FloatspaceCellAdding(object sender, Floatspac
private void kryptonDockingManager_ShowPageContextMenu(object sender, ContextPageEventArgs e)
{
// Create a set of custom menu items
KryptonContextMenuItems customItems = new KryptonContextMenuItems();
KryptonContextMenuSeparator customSeparator = new KryptonContextMenuSeparator();
KryptonContextMenuItem customItem1 = new KryptonContextMenuItem("Custom Item 1", OnCustomMenuItem);
KryptonContextMenuItem customItem2 = new KryptonContextMenuItem("Custom Item 2", OnCustomMenuItem);
var customItems = new KryptonContextMenuItems();
var customSeparator = new KryptonContextMenuSeparator();
var customItem1 = new KryptonContextMenuItem("Custom Item 1", OnCustomMenuItem);
var customItem2 = new KryptonContextMenuItem("Custom Item 2", OnCustomMenuItem);
customItem1.Tag = e.Page;
customItem2.Tag = e.Page;
customItems.Items.AddRange(new KryptonContextMenuItemBase[] { customSeparator, customItem1, customItem2 });
Expand All @@ -128,10 +129,10 @@ private void kryptonDockingManager_ShowPageContextMenu(object sender, ContextPag
private void kryptonDockingManager_ShowWorkspacePageContextMenu(object sender, ContextPageEventArgs e)
{
// Create a set of custom menu items
KryptonContextMenuItems customItems = new KryptonContextMenuItems();
KryptonContextMenuSeparator customSeparator = new KryptonContextMenuSeparator();
KryptonContextMenuItem customItem1 = new KryptonContextMenuItem("Custom Item 3", OnCustomMenuItem);
KryptonContextMenuItem customItem2 = new KryptonContextMenuItem("Custom Item 4", OnCustomMenuItem);
var customItems = new KryptonContextMenuItems();
var customSeparator = new KryptonContextMenuSeparator();
var customItem1 = new KryptonContextMenuItem("Custom Item 3", OnCustomMenuItem);
var customItem2 = new KryptonContextMenuItem("Custom Item 4", OnCustomMenuItem);
customItem1.Tag = e.Page;
customItem2.Tag = e.Page;
customItems.Items.AddRange(new KryptonContextMenuItemBase[] { customSeparator, customItem1, customItem2 });
Expand All @@ -142,9 +143,9 @@ private void kryptonDockingManager_ShowWorkspacePageContextMenu(object sender, C

private void OnCustomMenuItem(object sender, EventArgs e)
{
KryptonContextMenuItem menuItem = (KryptonContextMenuItem)sender;
KryptonPage page = (KryptonPage)menuItem.Tag;
MessageBox.Show("Clicked menu option '" + menuItem.Text + "' for the page '" + page.Text + "'.", "Page Context Menu");
var menuItem = (KryptonContextMenuItem)sender;
var page = (KryptonPage)menuItem.Tag;
MessageBox.Show($"Clicked menu option '{menuItem.Text}' for the page '{page.Text}'.", "Page Context Menu");
}

private void colorsRandom_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -188,7 +189,7 @@ private void buttonSpecsAdd_Click(object sender, EventArgs e)
foreach (KryptonPage page in kryptonDockingManager.Pages)
{
// Create a button spec and make it a random style so we get a random image
ButtonSpecAny bs = new ButtonSpecAny
var bs = new ButtonSpecAny
{
Type = _buttonSpecStyles[_random.Next(_buttonSpecStyles.Length)]
};
Expand All @@ -207,7 +208,7 @@ private void buttonSpecsClear_Click(object sender, EventArgs e)
private void kryptonRibbonModeButton_Click(object sender, EventArgs e)
{
// Extract the navigator mode from the tag field of the ribbon button
KryptonRibbonGroupButton button = (KryptonRibbonGroupButton)sender;
var button = (KryptonRibbonGroupButton)sender;
_mode = (NavigatorMode)Enum.Parse(typeof(NavigatorMode), (string)button.Tag);

UpdateModeButtons();
Expand Down
Loading

0 comments on commit 790fc67

Please sign in to comment.