diff --git a/AboutBoxForm.Designer.cs b/AboutBoxForm.Designer.cs new file mode 100644 index 0000000..5b9e4d1 --- /dev/null +++ b/AboutBoxForm.Designer.cs @@ -0,0 +1,233 @@ +namespace Numeric_List_Generator +{ + partial class AboutBoxForm + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + tableLayoutPanel = new TableLayoutPanel(); + logoPictureBox = new PictureBox(); + labelProductName = new Label(); + labelVersion = new Label(); + labelCopyright = new Label(); + labelCompanyName = new Label(); + textBoxDescription = new TextBox(); + okButton = new Button(); + toolTip = new ToolTip(components); + tableLayoutPanel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)logoPictureBox).BeginInit(); + SuspendLayout(); + // + // tableLayoutPanel + // + tableLayoutPanel.AccessibleDescription = "Gruppiert die Elemente"; + tableLayoutPanel.AccessibleName = "Gruppiert die Elemente"; + tableLayoutPanel.AccessibleRole = AccessibleRole.Grouping; + tableLayoutPanel.ColumnCount = 2; + tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 13.50365F)); + tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 86.49635F)); + tableLayoutPanel.Controls.Add(logoPictureBox, 0, 0); + tableLayoutPanel.Controls.Add(labelProductName, 1, 0); + tableLayoutPanel.Controls.Add(labelVersion, 1, 1); + tableLayoutPanel.Controls.Add(labelCopyright, 1, 2); + tableLayoutPanel.Controls.Add(labelCompanyName, 1, 3); + tableLayoutPanel.Controls.Add(textBoxDescription, 1, 4); + tableLayoutPanel.Controls.Add(okButton, 1, 5); + tableLayoutPanel.Dock = DockStyle.Fill; + tableLayoutPanel.Location = new Point(10, 10); + tableLayoutPanel.Margin = new Padding(4, 3, 4, 3); + tableLayoutPanel.Name = "tableLayoutPanel"; + tableLayoutPanel.RowCount = 6; + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 45.50265F)); + tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 16.40212F)); + tableLayoutPanel.Size = new Size(321, 219); + tableLayoutPanel.TabIndex = 0; + // + // logoPictureBox + // + logoPictureBox.AccessibleDescription = "Zeigt das Programmlogo an"; + logoPictureBox.AccessibleName = "Programmlogo"; + logoPictureBox.AccessibleRole = AccessibleRole.Graphic; + logoPictureBox.Dock = DockStyle.Fill; + logoPictureBox.Image = Properties.Resources.text_list_numbers; + logoPictureBox.Location = new Point(4, 3); + logoPictureBox.Margin = new Padding(4, 3, 4, 3); + logoPictureBox.Name = "logoPictureBox"; + tableLayoutPanel.SetRowSpan(logoPictureBox, 6); + logoPictureBox.Size = new Size(35, 213); + logoPictureBox.TabIndex = 12; + logoPictureBox.TabStop = false; + toolTip.SetToolTip(logoPictureBox, "Programmlogo"); + // + // labelProductName + // + labelProductName.AccessibleDescription = "Zeigt den Produktnamen an"; + labelProductName.AccessibleName = "Produktname"; + labelProductName.AccessibleRole = AccessibleRole.StaticText; + labelProductName.AutoEllipsis = true; + labelProductName.Dock = DockStyle.Fill; + labelProductName.Location = new Point(50, 0); + labelProductName.Margin = new Padding(7, 0, 4, 0); + labelProductName.MaximumSize = new Size(0, 20); + labelProductName.Name = "labelProductName"; + labelProductName.Size = new Size(267, 20); + labelProductName.TabIndex = 0; + labelProductName.Text = "Produktname"; + labelProductName.TextAlign = ContentAlignment.MiddleLeft; + toolTip.SetToolTip(labelProductName, "Produktname"); + // + // labelVersion + // + labelVersion.AccessibleDescription = "Zeigt die Version an"; + labelVersion.AccessibleName = "Version"; + labelVersion.AccessibleRole = AccessibleRole.StaticText; + labelVersion.AutoEllipsis = true; + labelVersion.Dock = DockStyle.Fill; + labelVersion.Location = new Point(50, 21); + labelVersion.Margin = new Padding(7, 0, 4, 0); + labelVersion.MaximumSize = new Size(0, 20); + labelVersion.Name = "labelVersion"; + labelVersion.Size = new Size(267, 20); + labelVersion.TabIndex = 1; + labelVersion.Text = "Version"; + labelVersion.TextAlign = ContentAlignment.MiddleLeft; + toolTip.SetToolTip(labelVersion, "Version"); + // + // labelCopyright + // + labelCopyright.AccessibleDescription = "Zeigt den Copyrightvermerk an"; + labelCopyright.AccessibleName = "Copyright"; + labelCopyright.AccessibleRole = AccessibleRole.StaticText; + labelCopyright.AutoEllipsis = true; + labelCopyright.Dock = DockStyle.Fill; + labelCopyright.Location = new Point(50, 42); + labelCopyright.Margin = new Padding(7, 0, 4, 0); + labelCopyright.MaximumSize = new Size(0, 20); + labelCopyright.Name = "labelCopyright"; + labelCopyright.Size = new Size(267, 20); + labelCopyright.TabIndex = 2; + labelCopyright.Text = "Copyright"; + labelCopyright.TextAlign = ContentAlignment.MiddleLeft; + toolTip.SetToolTip(labelCopyright, "Copyright"); + // + // labelCompanyName + // + labelCompanyName.AccessibleDescription = "Zeigt den Firmenname an"; + labelCompanyName.AccessibleName = "Firmenname"; + labelCompanyName.AccessibleRole = AccessibleRole.StaticText; + labelCompanyName.AutoEllipsis = true; + labelCompanyName.Dock = DockStyle.Fill; + labelCompanyName.Location = new Point(50, 63); + labelCompanyName.Margin = new Padding(7, 0, 4, 0); + labelCompanyName.MaximumSize = new Size(0, 20); + labelCompanyName.Name = "labelCompanyName"; + labelCompanyName.Size = new Size(267, 20); + labelCompanyName.TabIndex = 3; + labelCompanyName.Text = "Firmenname"; + labelCompanyName.TextAlign = ContentAlignment.MiddleLeft; + toolTip.SetToolTip(labelCompanyName, "Firmenname"); + // + // textBoxDescription + // + textBoxDescription.AccessibleDescription = "Zeigt die Beschreibung an"; + textBoxDescription.AccessibleName = "Beschreibung"; + textBoxDescription.AccessibleRole = AccessibleRole.Text; + textBoxDescription.Dock = DockStyle.Fill; + textBoxDescription.Location = new Point(50, 87); + textBoxDescription.Margin = new Padding(7, 3, 4, 3); + textBoxDescription.Multiline = true; + textBoxDescription.Name = "textBoxDescription"; + textBoxDescription.PlaceholderText = "Beschreibung"; + textBoxDescription.ReadOnly = true; + textBoxDescription.ScrollBars = ScrollBars.Both; + textBoxDescription.Size = new Size(267, 91); + textBoxDescription.TabIndex = 4; + textBoxDescription.TabStop = false; + textBoxDescription.Text = "Beschreibung"; + toolTip.SetToolTip(textBoxDescription, "Beschreibung"); + // + // okButton + // + okButton.AccessibleDescription = "Schließt das Genster"; + okButton.AccessibleName = "Okay"; + okButton.AccessibleRole = AccessibleRole.PushButton; + okButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + okButton.AutoEllipsis = true; + okButton.DialogResult = DialogResult.Cancel; + okButton.Image = Properties.Resources.tick; + okButton.Location = new Point(251, 189); + okButton.Margin = new Padding(4, 3, 4, 3); + okButton.Name = "okButton"; + okButton.Size = new Size(66, 27); + okButton.TabIndex = 5; + okButton.Text = "&OK"; + okButton.TextAlign = ContentAlignment.MiddleRight; + okButton.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(okButton, "Okay"); + // + // AboutBoxForm + // + AcceptButton = okButton; + AccessibleDescription = "Fenster der Programminformation"; + AccessibleName = "Fenster der Programminformation"; + AccessibleRole = AccessibleRole.Window; + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(341, 239); + Controls.Add(tableLayoutPanel); + FormBorderStyle = FormBorderStyle.FixedDialog; + Margin = new Padding(4, 3, 4, 3); + MaximizeBox = false; + MinimizeBox = false; + Name = "AboutBoxForm"; + Padding = new Padding(10); + ShowIcon = false; + ShowInTaskbar = false; + StartPosition = FormStartPosition.CenterParent; + Text = "AboutBoxForm"; + tableLayoutPanel.ResumeLayout(false); + tableLayoutPanel.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)logoPictureBox).EndInit(); + ResumeLayout(false); + } + + #endregion + + private TableLayoutPanel tableLayoutPanel; + private PictureBox logoPictureBox; + private Label labelProductName; + private Label labelVersion; + private Label labelCopyright; + private Label labelCompanyName; + private TextBox textBoxDescription; + private Button okButton; + private ToolTip toolTip; + } +} diff --git a/AboutBoxForm.cs b/AboutBoxForm.cs new file mode 100644 index 0000000..cca18c4 --- /dev/null +++ b/AboutBoxForm.cs @@ -0,0 +1,18 @@ +using MijoSoftware.AssemblyInformation; + +namespace Numeric_List_Generator +{ + partial class AboutBoxForm : Form + { + public AboutBoxForm() + { + InitializeComponent(); + Text = $"Info über {AssemblyInfo.AssemblyTitle}"; + labelProductName.Text = AssemblyInfo.AssemblyProduct; + labelVersion.Text = $"Version {AssemblyInfo.AssemblyVersion}"; + labelCopyright.Text = AssemblyInfo.AssemblyCopyright; + labelCompanyName.Text = AssemblyInfo.AssemblyCompany; + textBoxDescription.Text = AssemblyInfo.AssemblyDescription; + } + } +} diff --git a/AboutBoxForm.resx b/AboutBoxForm.resx new file mode 100644 index 0000000..4073a98 --- /dev/null +++ b/AboutBoxForm.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 61 + + \ No newline at end of file diff --git a/AssemblyInfo.cs b/AssemblyInfo.cs new file mode 100644 index 0000000..faef587 --- /dev/null +++ b/AssemblyInfo.cs @@ -0,0 +1,87 @@ +using System.Reflection; + +namespace MijoSoftware.AssemblyInformation +{ + /// + /// Provide some assembly information + /// + public static class AssemblyInfo + { + #region Assembly attribute accessors + + /// + /// Return the title of the assembly + /// + public static string AssemblyTitle + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyTitleAttribute), inherit: false); + if (attributes.Length > 0) + { + AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0]; + if (!string.IsNullOrEmpty(value: titleAttribute.Title)) + { + return titleAttribute.Title; + } + } + return Path.GetFileNameWithoutExtension(path: Assembly.GetExecutingAssembly().CodeBase); + } + } + + /// + /// Return the version of the assembly + /// + public static string AssemblyVersion => Assembly.GetExecutingAssembly().GetName().Version.ToString(); + + /// + /// Return the description of the assembly + /// + public static string AssemblyDescription + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyDescriptionAttribute), inherit: false); + return attributes.Length == 0 ? string.Empty : ((AssemblyDescriptionAttribute)attributes[0]).Description; + } + } + + /// + /// Return the product name of the assembly + /// + public static string AssemblyProduct + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyProductAttribute), inherit: false); + return attributes.Length == 0 ? string.Empty : ((AssemblyProductAttribute)attributes[0]).Product; + } + } + + /// + /// Return the copyright of the assembly + /// + public static string AssemblyCopyright + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyCopyrightAttribute), inherit: false); + return attributes.Length == 0 ? string.Empty : ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + } + } + + /// + /// Return the company name of the assembly + /// + public static string AssemblyCompany + { + get + { + object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(attributeType: typeof(AssemblyCompanyAttribute), inherit: false); + return attributes.Length == 0 ? string.Empty : ((AssemblyCompanyAttribute)attributes[0]).Company; + } + } + + #endregion + } +} \ No newline at end of file diff --git a/Numeric List Generator.csproj b/Numeric List Generator.csproj new file mode 100644 index 0000000..bbe1431 --- /dev/null +++ b/Numeric List Generator.csproj @@ -0,0 +1,121 @@ + + + + WinExe + net7.0-windows + Numeric_List_Generator + enable + true + enable + Numeric List Generator + Mijo Software + 1.4.0.6 + True + AnyCPU;ARM32;ARM64;x64;x86 + Numeric_List_Generator.Program + Resources\Numeric List Generator.ico + Erstellt Listen mit numerischen Einträgen (z. B. URLs oder Bildergalerien) + 2013-2023 Mijo Software + https://mijo-software.de/numeric-list-generator/ + text_list_numbers.png + README.md + https://github.com/Mijo-Software/Numeric-List-Generator.git + list-generator + de + LICENSE + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + 9999 + True + + + + + + + + + True + True + Resources.resx + + + True + True + Settings.settings + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + True + \ + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + \ + + + True + \ + + + + \ No newline at end of file diff --git a/Numeric List Generator.csproj.user b/Numeric List Generator.csproj.user new file mode 100644 index 0000000..ce61593 --- /dev/null +++ b/Numeric List Generator.csproj.user @@ -0,0 +1,17 @@ + + + + <_LastSelectedProfileId>C:\Users\mj-pr\OneDrive\Programming\Visual Studio 2022\Numeric List Generator\Properties\PublishProfiles\FolderProfile.pubxml + + + + Form + + + Form + + + Form + + + \ No newline at end of file diff --git a/Numeric List Generator.sln b/Numeric List Generator.sln index 90303b9..9b95ac2 100644 --- a/Numeric List Generator.sln +++ b/Numeric List Generator.sln @@ -1,37 +1,49 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31729.503 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34202.233 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Numeric List Generator", "Numeric List Generator\Numeric List Generator.csproj", "{D97E8329-C824-4406-93E0-C1224E393673}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Numeric List Generator", "Numeric List Generator.csproj", "{45230807-F9A7-4CA4-88EA-D750FA62D461}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|ARM32 = Debug|ARM32 + Debug|ARM64 = Debug|ARM64 Debug|x64 = Debug|x64 Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU + Release|ARM32 = Release|ARM32 + Release|ARM64 = Release|ARM64 Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|x64.ActiveCfg = Debug|x64 - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|x64.Build.0 = Debug|x64 - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|x86.ActiveCfg = Debug|x86 - {D97E8329-C824-4406-93E0-C1224E393673}.Debug|x86.Build.0 = Debug|x86 - {D97E8329-C824-4406-93E0-C1224E393673}.Release|Any CPU.ActiveCfg = Debug|Any CPU - {D97E8329-C824-4406-93E0-C1224E393673}.Release|Any CPU.Build.0 = Debug|Any CPU - {D97E8329-C824-4406-93E0-C1224E393673}.Release|x64.ActiveCfg = Release|x64 - {D97E8329-C824-4406-93E0-C1224E393673}.Release|x64.Build.0 = Release|x64 - {D97E8329-C824-4406-93E0-C1224E393673}.Release|x86.ActiveCfg = Release|x86 - {D97E8329-C824-4406-93E0-C1224E393673}.Release|x86.Build.0 = Release|x86 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|Any CPU.Build.0 = Debug|Any CPU + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|ARM32.ActiveCfg = Debug|ARM32 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|ARM32.Build.0 = Debug|ARM32 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|ARM64.Build.0 = Debug|ARM64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|x64.ActiveCfg = Debug|x64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|x64.Build.0 = Debug|x64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|x86.ActiveCfg = Debug|x86 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Debug|x86.Build.0 = Debug|x86 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|Any CPU.ActiveCfg = Release|Any CPU + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|Any CPU.Build.0 = Release|Any CPU + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|ARM32.ActiveCfg = Release|ARM32 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|ARM32.Build.0 = Release|ARM32 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|ARM64.ActiveCfg = Release|ARM64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|ARM64.Build.0 = Release|ARM64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|x64.ActiveCfg = Release|x64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|x64.Build.0 = Release|x64 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|x86.ActiveCfg = Release|x86 + {45230807-F9A7-4CA4-88EA-D750FA62D461}.Release|x86.Build.0 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {6FC381BB-C85F-4310-AFF5-E0EE97712EFE} + SolutionGuid = {AD729C2C-991C-44E3-8A0B-FEDA4F22672D} EndGlobalSection EndGlobal diff --git a/NumericListGeneratorForm.Designer.cs b/NumericListGeneratorForm.Designer.cs new file mode 100644 index 0000000..ffdc5a7 --- /dev/null +++ b/NumericListGeneratorForm.Designer.cs @@ -0,0 +1,774 @@ +namespace Numeric_List_Generator +{ + partial class NumericListGeneratorForm + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NumericListGeneratorForm)); + labelStringBeforeNumber = new Label(); + labelStringAfterNumber = new Label(); + labelNumberMin = new Label(); + numericUpDownNumberMinimum = new NumericUpDown(); + labelNumberMax = new Label(); + numericUpDownNumberMaximum = new NumericUpDown(); + checkBoxFillWithZeros = new CheckBox(); + textBoxList = new TextBox(); + labelProcress = new Label(); + progressBar = new ProgressBar(); + toolTip = new ToolTip(components); + textBoxStringBeforeNumber = new TextBox(); + textBoxStringAfterNumber = new TextBox(); + buttonRedo = new Button(); + buttonUndo = new Button(); + buttonCreateList = new Button(); + buttonInformationAboutApp = new Button(); + buttonExitApp = new Button(); + buttonDeleteList = new Button(); + buttonSaveList = new Button(); + buttonCopyList = new Button(); + buttonAddToList = new Button(); + labelResult = new Label(); + statusStripStatistic = new StatusStrip(); + toolStripStatusLabelSize = new ToolStripStatusLabel(); + toolStripStatusLabelLines = new ToolStripStatusLabel(); + toolStripStatusLabelTimeSpan = new ToolStripStatusLabel(); + toolStripStatusLabelLim = new ToolStripStatusLabel(); + toolStripSplitButtonStyle = new ToolStripSplitButton(); + toolStripMenuItemActivateVisualStyle = new ToolStripMenuItem(); + toolStripMenuItemDeactivateVisualStyle = new ToolStripMenuItem(); + backgroundWorker = new System.ComponentModel.BackgroundWorker(); + buttonSettings = new Button(); + statusStripInfo = new StatusStrip(); + toolStripStatusLabelInformation = new ToolStripStatusLabel(); + ((System.ComponentModel.ISupportInitialize)numericUpDownNumberMinimum).BeginInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownNumberMaximum).BeginInit(); + statusStripStatistic.SuspendLayout(); + statusStripInfo.SuspendLayout(); + SuspendLayout(); + // + // labelStringBeforeNumber + // + labelStringBeforeNumber.AccessibleDescription = "Zeichenkette vor der Zahl"; + labelStringBeforeNumber.AccessibleName = "Zeichenkette vor der Zahl"; + labelStringBeforeNumber.AccessibleRole = AccessibleRole.StaticText; + labelStringBeforeNumber.AutoEllipsis = true; + labelStringBeforeNumber.AutoSize = true; + labelStringBeforeNumber.Location = new Point(10, 10); + labelStringBeforeNumber.Margin = new Padding(4, 0, 4, 0); + labelStringBeforeNumber.Name = "labelStringBeforeNumber"; + labelStringBeforeNumber.Size = new Size(144, 15); + labelStringBeforeNumber.TabIndex = 0; + labelStringBeforeNumber.Text = "Zeichenkette &vor der Zahl:"; + labelStringBeforeNumber.Enter += SetStatusbar_Enter; + labelStringBeforeNumber.Leave += ClearStatusbar_Leave; + labelStringBeforeNumber.MouseEnter += SetStatusbar_Enter; + labelStringBeforeNumber.MouseLeave += ClearStatusbar_Leave; + // + // labelStringAfterNumber + // + labelStringAfterNumber.AccessibleDescription = "Zeichenkette nach der Zahl"; + labelStringAfterNumber.AccessibleName = "Zeichenkette nach der Zahl"; + labelStringAfterNumber.AccessibleRole = AccessibleRole.StaticText; + labelStringAfterNumber.AutoEllipsis = true; + labelStringAfterNumber.AutoSize = true; + labelStringAfterNumber.Location = new Point(10, 107); + labelStringAfterNumber.Margin = new Padding(4, 0, 4, 0); + labelStringAfterNumber.Name = "labelStringAfterNumber"; + labelStringAfterNumber.Size = new Size(153, 15); + labelStringAfterNumber.TabIndex = 7; + labelStringAfterNumber.Text = "Zeichenkette &nach der Zahl:"; + toolTip.SetToolTip(labelStringAfterNumber, "Zeichenkette nach der Zahl"); + labelStringAfterNumber.Enter += SetStatusbar_Enter; + labelStringAfterNumber.Leave += ClearStatusbar_Leave; + labelStringAfterNumber.MouseEnter += SetStatusbar_Enter; + labelStringAfterNumber.MouseLeave += ClearStatusbar_Leave; + // + // labelNumberMin + // + labelNumberMin.AccessibleDescription = "Zahlen Minimum"; + labelNumberMin.AccessibleName = "Zahlen Minimum"; + labelNumberMin.AccessibleRole = AccessibleRole.StaticText; + labelNumberMin.AutoEllipsis = true; + labelNumberMin.AutoSize = true; + labelNumberMin.Location = new Point(10, 69); + labelNumberMin.Margin = new Padding(4, 0, 4, 0); + labelNumberMin.Name = "labelNumberMin"; + labelNumberMin.Size = new Size(66, 15); + labelNumberMin.TabIndex = 2; + labelNumberMin.Text = "Zahlen v&on"; + toolTip.SetToolTip(labelNumberMin, "Zahlen Minimum"); + labelNumberMin.Enter += SetStatusbar_Enter; + labelNumberMin.Leave += ClearStatusbar_Leave; + labelNumberMin.MouseEnter += SetStatusbar_Enter; + labelNumberMin.MouseLeave += ClearStatusbar_Leave; + // + // numericUpDownNumberMinimum + // + numericUpDownNumberMinimum.AccessibleDescription = "Minimun der Zahl, mit der die Einträge erstellt werden sollen"; + numericUpDownNumberMinimum.AccessibleName = "Minimun der Zahl, mit der die Einträge erstellt werden sollen"; + numericUpDownNumberMinimum.AccessibleRole = AccessibleRole.SpinButton; + numericUpDownNumberMinimum.Location = new Point(89, 67); + numericUpDownNumberMinimum.Margin = new Padding(4, 3, 4, 3); + numericUpDownNumberMinimum.Maximum = new decimal(new int[] { 9999999, 0, 0, 0 }); + numericUpDownNumberMinimum.Name = "numericUpDownNumberMinimum"; + numericUpDownNumberMinimum.Size = new Size(57, 23); + numericUpDownNumberMinimum.TabIndex = 3; + toolTip.SetToolTip(numericUpDownNumberMinimum, "Minimun der Zahl, mit der die Einträge erstellt werden sollen"); + numericUpDownNumberMinimum.Value = new decimal(new int[] { 1, 0, 0, 0 }); + numericUpDownNumberMinimum.Enter += SetStatusbar_Enter; + numericUpDownNumberMinimum.Leave += ClearStatusbar_Leave; + // + // labelNumberMax + // + labelNumberMax.AccessibleDescription = "Zahlen Maximum"; + labelNumberMax.AccessibleName = "Zahlen Maximum"; + labelNumberMax.AccessibleRole = AccessibleRole.StaticText; + labelNumberMax.AutoSize = true; + labelNumberMax.Location = new Point(153, 69); + labelNumberMax.Margin = new Padding(4, 0, 4, 0); + labelNumberMax.Name = "labelNumberMax"; + labelNumberMax.Size = new Size(22, 15); + labelNumberMax.TabIndex = 4; + labelNumberMax.Text = "b&is"; + toolTip.SetToolTip(labelNumberMax, "Zahlen Maximum"); + labelNumberMax.Enter += SetStatusbar_Enter; + labelNumberMax.Leave += ClearStatusbar_Leave; + labelNumberMax.MouseEnter += SetStatusbar_Enter; + labelNumberMax.MouseLeave += ClearStatusbar_Leave; + // + // numericUpDownNumberMaximum + // + numericUpDownNumberMaximum.AccessibleDescription = "Maximun der Zahl, mit der die Einträge erstellt werden sollen"; + numericUpDownNumberMaximum.AccessibleName = "Maximun der Zahl, mit der die Einträge erstellt werden sollen"; + numericUpDownNumberMaximum.AccessibleRole = AccessibleRole.SpinButton; + numericUpDownNumberMaximum.Location = new Point(183, 67); + numericUpDownNumberMaximum.Margin = new Padding(4, 3, 4, 3); + numericUpDownNumberMaximum.Maximum = new decimal(new int[] { 9999999, 0, 0, 0 }); + numericUpDownNumberMaximum.Name = "numericUpDownNumberMaximum"; + numericUpDownNumberMaximum.Size = new Size(57, 23); + numericUpDownNumberMaximum.TabIndex = 5; + toolTip.SetToolTip(numericUpDownNumberMaximum, "Maximun der Zahl, mit der die Einträge erstellt werden sollen"); + numericUpDownNumberMaximum.Value = new decimal(new int[] { 10, 0, 0, 0 }); + numericUpDownNumberMaximum.Enter += SetStatusbar_Enter; + numericUpDownNumberMaximum.Leave += ClearStatusbar_Leave; + // + // checkBoxFillWithZeros + // + checkBoxFillWithZeros.AccessibleDescription = "Markieren, wenn die Einträge mit voranführenden Nullen aufgefüllt werden sollen"; + checkBoxFillWithZeros.AccessibleName = "Markieren, wenn die Einträge mit voranführenden Nullen aufgefüllt werden sollen"; + checkBoxFillWithZeros.AccessibleRole = AccessibleRole.CheckButton; + checkBoxFillWithZeros.AutoSize = true; + checkBoxFillWithZeros.Location = new Point(255, 69); + checkBoxFillWithZeros.Margin = new Padding(4, 3, 4, 3); + checkBoxFillWithZeros.Name = "checkBoxFillWithZeros"; + checkBoxFillWithZeros.Size = new Size(132, 19); + checkBoxFillWithZeros.TabIndex = 6; + checkBoxFillWithZeros.Text = "&mit Nullen auffüllen"; + toolTip.SetToolTip(checkBoxFillWithZeros, "Markieren, wenn die Einträge mit voranführenden Nullen aufgefüllt werden sollen"); + checkBoxFillWithZeros.UseVisualStyleBackColor = true; + checkBoxFillWithZeros.Enter += SetStatusbar_Enter; + checkBoxFillWithZeros.Leave += ClearStatusbar_Leave; + checkBoxFillWithZeros.MouseEnter += SetStatusbar_Enter; + checkBoxFillWithZeros.MouseLeave += ClearStatusbar_Leave; + // + // textBoxList + // + textBoxList.AccessibleDescription = "Zeigt die Liste mit den generierten Einträgen an"; + textBoxList.AccessibleName = "Generierten Einträge"; + textBoxList.AccessibleRole = AccessibleRole.Text; + textBoxList.Location = new Point(14, 302); + textBoxList.Margin = new Padding(4, 3, 4, 3); + textBoxList.MaxLength = int.MaxValue; + textBoxList.Multiline = true; + textBoxList.Name = "textBoxList"; + textBoxList.ScrollBars = ScrollBars.Both; + textBoxList.Size = new Size(395, 192); + textBoxList.TabIndex = 19; + toolTip.SetToolTip(textBoxList, "Zeigt die Liste mit den generierten Einträgen an"); + textBoxList.WordWrap = false; + textBoxList.Enter += SetStatusbar_Enter; + textBoxList.Leave += ClearStatusbar_Leave; + textBoxList.MouseEnter += SetStatusbar_Enter; + textBoxList.MouseLeave += ClearStatusbar_Leave; + // + // labelProcress + // + labelProcress.AccessibleDescription = "Verarbeitung"; + labelProcress.AccessibleName = "Verarbeitung"; + labelProcress.AccessibleRole = AccessibleRole.StaticText; + labelProcress.AutoEllipsis = true; + labelProcress.AutoSize = true; + labelProcress.Location = new Point(10, 253); + labelProcress.Margin = new Padding(4, 0, 4, 0); + labelProcress.Name = "labelProcress"; + labelProcress.Size = new Size(77, 15); + labelProcress.TabIndex = 16; + labelProcress.Text = "Verarbeitun&g:"; + toolTip.SetToolTip(labelProcress, "Verarbeitung"); + labelProcress.Enter += SetStatusbar_Enter; + labelProcress.Leave += ClearStatusbar_Leave; + labelProcress.MouseEnter += SetStatusbar_Enter; + labelProcress.MouseLeave += ClearStatusbar_Leave; + // + // progressBar + // + progressBar.AccessibleDescription = "Zeigt den laufenden Verarbeitungsstatus an"; + progressBar.AccessibleName = "Verarbeitungsstatus"; + progressBar.AccessibleRole = AccessibleRole.ProgressBar; + progressBar.Location = new Point(95, 253); + progressBar.Margin = new Padding(4, 3, 4, 3); + progressBar.Name = "progressBar"; + progressBar.Size = new Size(314, 20); + progressBar.Style = ProgressBarStyle.Continuous; + progressBar.TabIndex = 17; + toolTip.SetToolTip(progressBar, "Zeigt den laufenden Verarbeitungsstatus an"); + progressBar.MouseEnter += SetStatusbar_Enter; + progressBar.MouseLeave += ClearStatusbar_Leave; + // + // textBoxStringBeforeNumber + // + textBoxStringBeforeNumber.AccessibleDescription = "Eingabe des Textes vor der Zahlenangabe"; + textBoxStringBeforeNumber.AccessibleName = "Eingabe des Textes vor der Zahlenangabe"; + textBoxStringBeforeNumber.AccessibleRole = AccessibleRole.Text; + textBoxStringBeforeNumber.AutoCompleteMode = AutoCompleteMode.SuggestAppend; + textBoxStringBeforeNumber.AutoCompleteSource = AutoCompleteSource.CustomSource; + textBoxStringBeforeNumber.Location = new Point(14, 29); + textBoxStringBeforeNumber.Margin = new Padding(4, 3, 4, 3); + textBoxStringBeforeNumber.Name = "textBoxStringBeforeNumber"; + textBoxStringBeforeNumber.PlaceholderText = "Eingabe des Textes vor der Zahlenangabe"; + textBoxStringBeforeNumber.Size = new Size(395, 23); + textBoxStringBeforeNumber.TabIndex = 1; + textBoxStringBeforeNumber.Text = "http://www.domain.com/files/picture"; + toolTip.SetToolTip(textBoxStringBeforeNumber, "Eingabe des Textes vor der Zahlenangabe"); + textBoxStringBeforeNumber.Enter += SetStatusbar_Enter; + textBoxStringBeforeNumber.Leave += ClearStatusbar_Leave; + textBoxStringBeforeNumber.MouseEnter += SetStatusbar_Enter; + textBoxStringBeforeNumber.MouseLeave += ClearStatusbar_Leave; + // + // textBoxStringAfterNumber + // + textBoxStringAfterNumber.AccessibleDescription = "Eingabe des Textes nach der Zahlenangabe"; + textBoxStringAfterNumber.AccessibleName = "Eingabe des Textes nach der Zahlenangabe"; + textBoxStringAfterNumber.AccessibleRole = AccessibleRole.Text; + textBoxStringAfterNumber.AutoCompleteMode = AutoCompleteMode.SuggestAppend; + textBoxStringAfterNumber.AutoCompleteSource = AutoCompleteSource.CustomSource; + textBoxStringAfterNumber.Location = new Point(14, 126); + textBoxStringAfterNumber.Margin = new Padding(4, 3, 4, 3); + textBoxStringAfterNumber.Name = "textBoxStringAfterNumber"; + textBoxStringAfterNumber.PlaceholderText = "Eingabe des Textes nach der Zahlenangabe"; + textBoxStringAfterNumber.Size = new Size(395, 23); + textBoxStringAfterNumber.TabIndex = 8; + textBoxStringAfterNumber.Text = ".jpg"; + toolTip.SetToolTip(textBoxStringAfterNumber, "Eingabe des Textes nach der Zahlenangabe"); + textBoxStringAfterNumber.Enter += SetStatusbar_Enter; + textBoxStringAfterNumber.Leave += ClearStatusbar_Leave; + textBoxStringAfterNumber.MouseEnter += SetStatusbar_Enter; + textBoxStringAfterNumber.MouseLeave += ClearStatusbar_Leave; + // + // buttonRedo + // + buttonRedo.AccessibleDescription = "Verwirft die letzte rückgängig gemachte Änderung"; + buttonRedo.AccessibleName = "Letzte Änderung verwerfen"; + buttonRedo.AccessibleRole = AccessibleRole.PushButton; + buttonRedo.AutoEllipsis = true; + buttonRedo.Image = Properties.Resources.redo; + buttonRedo.Location = new Point(86, 205); + buttonRedo.Margin = new Padding(4, 3, 4, 3); + buttonRedo.Name = "buttonRedo"; + buttonRedo.Size = new Size(68, 30); + buttonRedo.TabIndex = 13; + buttonRedo.Text = "&Redo"; + buttonRedo.TextAlign = ContentAlignment.MiddleRight; + buttonRedo.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonRedo, "Verwirft die letzte rückgängig gemachte Änderung"); + buttonRedo.UseVisualStyleBackColor = true; + buttonRedo.Click += ButtonRedo_Click; + buttonRedo.Enter += SetStatusbar_Enter; + buttonRedo.Leave += ClearStatusbar_Leave; + buttonRedo.MouseEnter += SetStatusbar_Enter; + buttonRedo.MouseLeave += ClearStatusbar_Leave; + // + // buttonUndo + // + buttonUndo.AccessibleDescription = "Macht die letzte Änderung rückgängig"; + buttonUndo.AccessibleName = "Änderung rückgängigmachen"; + buttonUndo.AccessibleRole = AccessibleRole.PushButton; + buttonUndo.AutoEllipsis = true; + buttonUndo.Image = (Image)resources.GetObject("buttonUndo.Image"); + buttonUndo.Location = new Point(14, 205); + buttonUndo.Margin = new Padding(4, 3, 4, 3); + buttonUndo.Name = "buttonUndo"; + buttonUndo.Size = new Size(68, 30); + buttonUndo.TabIndex = 12; + buttonUndo.Text = "&Undo"; + buttonUndo.TextAlign = ContentAlignment.MiddleRight; + buttonUndo.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonUndo, "Macht die letzte Änderung rückgängig"); + buttonUndo.UseVisualStyleBackColor = true; + buttonUndo.Click += ButtonUndo_Click; + buttonUndo.Enter += SetStatusbar_Enter; + buttonUndo.Leave += ClearStatusbar_Leave; + buttonUndo.MouseEnter += SetStatusbar_Enter; + buttonUndo.MouseLeave += ClearStatusbar_Leave; + // + // buttonCreateList + // + buttonCreateList.AccessibleDescription = "Erstellt eine neue Liste"; + buttonCreateList.AccessibleName = "Liste neu erstellen"; + buttonCreateList.AccessibleRole = AccessibleRole.PushButton; + buttonCreateList.AutoEllipsis = true; + buttonCreateList.Image = Properties.Resources.document_index; + buttonCreateList.Location = new Point(14, 168); + buttonCreateList.Margin = new Padding(4, 3, 4, 3); + buttonCreateList.Name = "buttonCreateList"; + buttonCreateList.Size = new Size(140, 30); + buttonCreateList.TabIndex = 9; + buttonCreateList.Text = "Liste neu &erstellen"; + buttonCreateList.TextAlign = ContentAlignment.MiddleRight; + buttonCreateList.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonCreateList, "Erstellt eine neue Liste"); + buttonCreateList.UseVisualStyleBackColor = true; + buttonCreateList.Click += ButtonCreateList_Click; + buttonCreateList.Enter += SetStatusbar_Enter; + buttonCreateList.Leave += ClearStatusbar_Leave; + buttonCreateList.MouseEnter += SetStatusbar_Enter; + buttonCreateList.MouseLeave += ClearStatusbar_Leave; + // + // buttonInformationAboutApp + // + buttonInformationAboutApp.AccessibleDescription = "Ruft die Programminformationen auf"; + buttonInformationAboutApp.AccessibleName = "Programminformationen"; + buttonInformationAboutApp.AccessibleRole = AccessibleRole.PushButton; + buttonInformationAboutApp.AutoEllipsis = true; + buttonInformationAboutApp.Image = Properties.Resources.information; + buttonInformationAboutApp.Location = new Point(14, 502); + buttonInformationAboutApp.Margin = new Padding(4, 3, 4, 3); + buttonInformationAboutApp.Name = "buttonInformationAboutApp"; + buttonInformationAboutApp.Size = new Size(68, 30); + buttonInformationAboutApp.TabIndex = 20; + buttonInformationAboutApp.Text = "&Info"; + buttonInformationAboutApp.TextAlign = ContentAlignment.MiddleRight; + buttonInformationAboutApp.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonInformationAboutApp, "Ruft die Programminformationen auf"); + buttonInformationAboutApp.UseVisualStyleBackColor = true; + buttonInformationAboutApp.Click += ButtonInformationAboutApp_Click; + buttonInformationAboutApp.Enter += SetStatusbar_Enter; + buttonInformationAboutApp.Leave += ClearStatusbar_Leave; + buttonInformationAboutApp.MouseEnter += SetStatusbar_Enter; + buttonInformationAboutApp.MouseLeave += ClearStatusbar_Leave; + // + // buttonExitApp + // + buttonExitApp.AccessibleDescription = "Beendet das Program"; + buttonExitApp.AccessibleName = "Programm beenden"; + buttonExitApp.AccessibleRole = AccessibleRole.PushButton; + buttonExitApp.AutoEllipsis = true; + buttonExitApp.Image = Properties.Resources.door_open; + buttonExitApp.Location = new Point(259, 502); + buttonExitApp.Margin = new Padding(4, 3, 4, 3); + buttonExitApp.Name = "buttonExitApp"; + buttonExitApp.Size = new Size(150, 30); + buttonExitApp.TabIndex = 22; + buttonExitApp.Text = "Programm &beenden"; + buttonExitApp.TextAlign = ContentAlignment.MiddleRight; + buttonExitApp.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonExitApp, "Beendet das Programm"); + buttonExitApp.UseVisualStyleBackColor = true; + buttonExitApp.Click += ButtonExitApp_Click; + buttonExitApp.Enter += SetStatusbar_Enter; + buttonExitApp.Leave += ClearStatusbar_Leave; + buttonExitApp.MouseEnter += SetStatusbar_Enter; + buttonExitApp.MouseLeave += ClearStatusbar_Leave; + // + // buttonDeleteList + // + buttonDeleteList.AccessibleDescription = "Löscht die Liste"; + buttonDeleteList.AccessibleName = "Liste löschen"; + buttonDeleteList.AccessibleRole = AccessibleRole.PushButton; + buttonDeleteList.AutoEllipsis = true; + buttonDeleteList.Image = Properties.Resources.bin_empty; + buttonDeleteList.Location = new Point(289, 168); + buttonDeleteList.Margin = new Padding(4, 3, 4, 3); + buttonDeleteList.Name = "buttonDeleteList"; + buttonDeleteList.Size = new Size(120, 30); + buttonDeleteList.TabIndex = 11; + buttonDeleteList.Text = "Liste &löschen"; + buttonDeleteList.TextAlign = ContentAlignment.MiddleRight; + buttonDeleteList.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonDeleteList, "Löscht die Liste"); + buttonDeleteList.UseVisualStyleBackColor = true; + buttonDeleteList.Click += ButtonDeleteList_Click; + buttonDeleteList.Enter += SetStatusbar_Enter; + buttonDeleteList.Leave += ClearStatusbar_Leave; + buttonDeleteList.MouseEnter += SetStatusbar_Enter; + buttonDeleteList.MouseLeave += ClearStatusbar_Leave; + // + // buttonSaveList + // + buttonSaveList.AccessibleDescription = "Speichert die Liste als Textdatei ab"; + buttonSaveList.AccessibleName = "Liste abspeichern"; + buttonSaveList.AccessibleRole = AccessibleRole.PushButton; + buttonSaveList.AutoEllipsis = true; + buttonSaveList.Image = Properties.Resources.diskette; + buttonSaveList.Location = new Point(289, 205); + buttonSaveList.Margin = new Padding(4, 3, 4, 3); + buttonSaveList.Name = "buttonSaveList"; + buttonSaveList.Size = new Size(120, 30); + buttonSaveList.TabIndex = 15; + buttonSaveList.Text = "Liste &speichern"; + buttonSaveList.TextAlign = ContentAlignment.MiddleRight; + buttonSaveList.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonSaveList, "Speichert die Liste als Textdatei ab"); + buttonSaveList.UseVisualStyleBackColor = true; + buttonSaveList.Click += ButtonSaveList_Click; + buttonSaveList.Enter += SetStatusbar_Enter; + buttonSaveList.Leave += ClearStatusbar_Leave; + buttonSaveList.MouseEnter += SetStatusbar_Enter; + buttonSaveList.MouseLeave += ClearStatusbar_Leave; + // + // buttonCopyList + // + buttonCopyList.AccessibleDescription = "Kopiert die Liste in die Windows-Zwischenablage"; + buttonCopyList.AccessibleName = "Liste koperien"; + buttonCopyList.AccessibleRole = AccessibleRole.PushButton; + buttonCopyList.AutoEllipsis = true; + buttonCopyList.Image = Properties.Resources.page_copy; + buttonCopyList.Location = new Point(161, 205); + buttonCopyList.Margin = new Padding(4, 3, 4, 3); + buttonCopyList.Name = "buttonCopyList"; + buttonCopyList.Size = new Size(121, 30); + buttonCopyList.TabIndex = 14; + buttonCopyList.Text = "Liste &kopieren"; + buttonCopyList.TextAlign = ContentAlignment.MiddleRight; + buttonCopyList.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonCopyList, "Kopiert die Liste in die Zwischenanlage"); + buttonCopyList.UseVisualStyleBackColor = true; + buttonCopyList.Click += ButtonCopyList_Click; + buttonCopyList.Enter += SetStatusbar_Enter; + buttonCopyList.Leave += ClearStatusbar_Leave; + buttonCopyList.MouseEnter += SetStatusbar_Enter; + buttonCopyList.MouseLeave += ClearStatusbar_Leave; + // + // buttonAddToList + // + buttonAddToList.AccessibleDescription = "Fügt die Einträge an der vorhandenen Liste an"; + buttonAddToList.AccessibleName = "Liste anfügen"; + buttonAddToList.AccessibleRole = AccessibleRole.PushButton; + buttonAddToList.AutoEllipsis = true; + buttonAddToList.Image = Properties.Resources.add; + buttonAddToList.Location = new Point(161, 168); + buttonAddToList.Margin = new Padding(4, 3, 4, 3); + buttonAddToList.Name = "buttonAddToList"; + buttonAddToList.Size = new Size(121, 30); + buttonAddToList.TabIndex = 10; + buttonAddToList.Text = "Liste &anfügen"; + buttonAddToList.TextAlign = ContentAlignment.MiddleRight; + buttonAddToList.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonAddToList, "Fügt die Einträge an der vorhandenen Liste an"); + buttonAddToList.UseVisualStyleBackColor = true; + buttonAddToList.Click += ButtonAddToList_Click; + buttonAddToList.Enter += SetStatusbar_Enter; + buttonAddToList.Leave += ClearStatusbar_Leave; + buttonAddToList.MouseEnter += SetStatusbar_Enter; + buttonAddToList.MouseLeave += ClearStatusbar_Leave; + // + // labelResult + // + labelResult.AccessibleDescription = "Ergebnis"; + labelResult.AccessibleName = "Ergebnis"; + labelResult.AccessibleRole = AccessibleRole.StaticText; + labelResult.AutoEllipsis = true; + labelResult.AutoSize = true; + labelResult.Location = new Point(10, 284); + labelResult.Margin = new Padding(4, 0, 4, 0); + labelResult.Name = "labelResult"; + labelResult.Size = new Size(55, 15); + labelResult.TabIndex = 18; + labelResult.Text = "E&rgebnis:"; + toolTip.SetToolTip(labelResult, "Ergebnis"); + labelResult.MouseEnter += SetStatusbar_Enter; + labelResult.MouseLeave += ClearStatusbar_Leave; + // + // statusStripStatistic + // + statusStripStatistic.AccessibleDescription = "Statusbar für statistische Angaben"; + statusStripStatistic.AccessibleName = "Statusbar"; + statusStripStatistic.AccessibleRole = AccessibleRole.StatusBar; + statusStripStatistic.AllowItemReorder = true; + statusStripStatistic.Items.AddRange(new ToolStripItem[] { toolStripStatusLabelSize, toolStripStatusLabelLines, toolStripStatusLabelTimeSpan, toolStripStatusLabelLim, toolStripSplitButtonStyle }); + statusStripStatistic.Location = new Point(0, 561); + statusStripStatistic.Name = "statusStripStatistic"; + statusStripStatistic.Padding = new Padding(1, 0, 16, 0); + statusStripStatistic.ShowItemToolTips = true; + statusStripStatistic.Size = new Size(424, 24); + statusStripStatistic.SizingGrip = false; + statusStripStatistic.TabIndex = 23; + statusStripStatistic.TabStop = true; + statusStripStatistic.Text = "statusStripStatistic"; + // + // toolStripStatusLabelSize + // + toolStripStatusLabelSize.AccessibleDescription = "Gibt die Größe der Liste in Bytes an"; + toolStripStatusLabelSize.AccessibleName = "Größe der Liste"; + toolStripStatusLabelSize.AccessibleRole = AccessibleRole.StaticText; + toolStripStatusLabelSize.AutoToolTip = true; + toolStripStatusLabelSize.BorderSides = ToolStripStatusLabelBorderSides.Left | ToolStripStatusLabelBorderSides.Top | ToolStripStatusLabelBorderSides.Right | ToolStripStatusLabelBorderSides.Bottom; + toolStripStatusLabelSize.Name = "toolStripStatusLabelSize"; + toolStripStatusLabelSize.Size = new Size(43, 19); + toolStripStatusLabelSize.Tag = "Größe"; + toolStripStatusLabelSize.Text = "Größe"; + toolStripStatusLabelSize.Click += ToolStripStatusLabelSize_Click; + // + // toolStripStatusLabelLines + // + toolStripStatusLabelLines.AccessibleDescription = "Gibt die Anzahl der Zeilen in der Liste an"; + toolStripStatusLabelLines.AccessibleName = "Anzahl der Zeilen in der Liste"; + toolStripStatusLabelLines.AccessibleRole = AccessibleRole.StaticText; + toolStripStatusLabelLines.AutoToolTip = true; + toolStripStatusLabelLines.BorderSides = ToolStripStatusLabelBorderSides.Left | ToolStripStatusLabelBorderSides.Top | ToolStripStatusLabelBorderSides.Right | ToolStripStatusLabelBorderSides.Bottom; + toolStripStatusLabelLines.Name = "toolStripStatusLabelLines"; + toolStripStatusLabelLines.Size = new Size(43, 19); + toolStripStatusLabelLines.Tag = "Zeilen"; + toolStripStatusLabelLines.Text = "Zeilen"; + toolStripStatusLabelLines.Click += ToolStripStatusLabelLines_Click; + // + // toolStripStatusLabelTimeSpan + // + toolStripStatusLabelTimeSpan.AccessibleDescription = "Gibt die Dauer der Listengenerierung an"; + toolStripStatusLabelTimeSpan.AccessibleName = "Dauer der Listengenerierung"; + toolStripStatusLabelTimeSpan.AccessibleRole = AccessibleRole.StaticText; + toolStripStatusLabelTimeSpan.AutoToolTip = true; + toolStripStatusLabelTimeSpan.BorderSides = ToolStripStatusLabelBorderSides.Left | ToolStripStatusLabelBorderSides.Top | ToolStripStatusLabelBorderSides.Right | ToolStripStatusLabelBorderSides.Bottom; + toolStripStatusLabelTimeSpan.Name = "toolStripStatusLabelTimeSpan"; + toolStripStatusLabelTimeSpan.Size = new Size(42, 19); + toolStripStatusLabelTimeSpan.Tag = "Dauer"; + toolStripStatusLabelTimeSpan.Text = "Dauer"; + toolStripStatusLabelTimeSpan.ToolTipText = "Dauer"; + toolStripStatusLabelTimeSpan.Click += ToolStripStatusLabelTimeSpan_Click; + // + // toolStripStatusLabelLim + // + toolStripStatusLabelLim.AccessibleDescription = "Zeigt den berechneten LIM an"; + toolStripStatusLabelLim.AccessibleName = "Berechneter LIM"; + toolStripStatusLabelLim.AccessibleRole = AccessibleRole.StaticText; + toolStripStatusLabelLim.AutoToolTip = true; + toolStripStatusLabelLim.BorderSides = ToolStripStatusLabelBorderSides.Left | ToolStripStatusLabelBorderSides.Top | ToolStripStatusLabelBorderSides.Right | ToolStripStatusLabelBorderSides.Bottom; + toolStripStatusLabelLim.Name = "toolStripStatusLabelLim"; + toolStripStatusLabelLim.Size = new Size(247, 19); + toolStripStatusLabelLim.Spring = true; + toolStripStatusLabelLim.Tag = "LIM"; + toolStripStatusLabelLim.Text = "LIM"; + toolStripStatusLabelLim.Click += ToolStripStatusLabelLim_Click; + // + // toolStripSplitButtonStyle + // + toolStripSplitButtonStyle.AccessibleDescription = "Aktiviert oder deaktiviert den visuellen Stil des Programms"; + toolStripSplitButtonStyle.AccessibleName = "Visuellen Stil de-/aktivieren"; + toolStripSplitButtonStyle.AccessibleRole = AccessibleRole.PushButton; + toolStripSplitButtonStyle.DisplayStyle = ToolStripItemDisplayStyle.Image; + toolStripSplitButtonStyle.DropDownItems.AddRange(new ToolStripItem[] { toolStripMenuItemActivateVisualStyle, toolStripMenuItemDeactivateVisualStyle }); + toolStripSplitButtonStyle.Image = Properties.Resources.application_grey; + toolStripSplitButtonStyle.ImageTransparentColor = Color.Magenta; + toolStripSplitButtonStyle.Name = "toolStripSplitButtonStyle"; + toolStripSplitButtonStyle.Size = new Size(32, 22); + toolStripSplitButtonStyle.Text = "Visueller Stil"; + toolStripSplitButtonStyle.ButtonClick += ToolStripStatusLabelStyle_Click; + // + // toolStripMenuItemActivateVisualStyle + // + toolStripMenuItemActivateVisualStyle.AccessibleDescription = "Aktiviert den visuellen Stil des Programms"; + toolStripMenuItemActivateVisualStyle.AccessibleName = "Visuellen Stil aktivieren"; + toolStripMenuItemActivateVisualStyle.AccessibleRole = AccessibleRole.MenuItem; + toolStripMenuItemActivateVisualStyle.AutoToolTip = true; + toolStripMenuItemActivateVisualStyle.Image = Properties.Resources.application; + toolStripMenuItemActivateVisualStyle.Name = "toolStripMenuItemActivateVisualStyle"; + toolStripMenuItemActivateVisualStyle.Size = new Size(204, 22); + toolStripMenuItemActivateVisualStyle.Text = "Visueller Stil &aktivieren"; + toolStripMenuItemActivateVisualStyle.ToolTipText = "Visueller Stil aktivieren"; + toolStripMenuItemActivateVisualStyle.Click += ToolStripMenuItemActivateVisualStyle_Click; + // + // toolStripMenuItemDeactivateVisualStyle + // + toolStripMenuItemDeactivateVisualStyle.AccessibleDescription = "Deaktiviert den visuellen Stil des Programms"; + toolStripMenuItemDeactivateVisualStyle.AccessibleName = "Visuellen Stil deaktivieren"; + toolStripMenuItemDeactivateVisualStyle.AccessibleRole = AccessibleRole.MenuItem; + toolStripMenuItemDeactivateVisualStyle.AutoToolTip = true; + toolStripMenuItemDeactivateVisualStyle.Image = Properties.Resources.application_grey; + toolStripMenuItemDeactivateVisualStyle.Name = "toolStripMenuItemDeactivateVisualStyle"; + toolStripMenuItemDeactivateVisualStyle.Size = new Size(204, 22); + toolStripMenuItemDeactivateVisualStyle.Text = "Visueller Stil &deaktivieren"; + toolStripMenuItemDeactivateVisualStyle.ToolTipText = "Visueller Stil deaktivieren"; + toolStripMenuItemDeactivateVisualStyle.Click += ToolStripMenuItemDeactivateVisualStyle_Click; + // + // backgroundWorker + // + backgroundWorker.WorkerReportsProgress = true; + backgroundWorker.WorkerSupportsCancellation = true; + backgroundWorker.DoWork += BackgroundWorker_DoWork; + backgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged; + backgroundWorker.RunWorkerCompleted += BackgroundWorker_RunWorkerCompleted; + // + // buttonSettings + // + buttonSettings.AccessibleDescription = "Öffnet die Einstellungen"; + buttonSettings.AccessibleName = "Einstellungen"; + buttonSettings.AccessibleRole = AccessibleRole.PushButton; + buttonSettings.AutoEllipsis = true; + buttonSettings.Image = Properties.Resources.wrench_orange; + buttonSettings.Location = new Point(89, 502); + buttonSettings.Margin = new Padding(4, 3, 4, 3); + buttonSettings.Name = "buttonSettings"; + buttonSettings.Size = new Size(115, 30); + buttonSettings.TabIndex = 21; + buttonSettings.Text = "Eins&tellungen"; + buttonSettings.TextAlign = ContentAlignment.MiddleRight; + buttonSettings.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonSettings, "Öffnet die Einstellungen"); + buttonSettings.UseVisualStyleBackColor = true; + buttonSettings.Click += ButtonSettings_Click; + buttonSettings.Enter += SetStatusbar_Enter; + buttonSettings.Leave += ClearStatusbar_Leave; + buttonSettings.MouseEnter += SetStatusbar_Enter; + buttonSettings.MouseLeave += ClearStatusbar_Leave; + // + // statusStripInfo + // + statusStripInfo.AccessibleDescription = "Statusbar für Informationstext"; + statusStripInfo.AccessibleName = "Statusbar"; + statusStripInfo.AccessibleRole = AccessibleRole.StatusBar; + statusStripInfo.Items.AddRange(new ToolStripItem[] { toolStripStatusLabelInformation }); + statusStripInfo.Location = new Point(0, 539); + statusStripInfo.Name = "statusStripInfo"; + statusStripInfo.ShowItemToolTips = true; + statusStripInfo.Size = new Size(424, 22); + statusStripInfo.SizingGrip = false; + statusStripInfo.TabIndex = 24; + statusStripInfo.TabStop = true; + statusStripInfo.Text = "statusStripInfo"; + // + // toolStripStatusLabelInformation + // + toolStripStatusLabelInformation.AccessibleDescription = "Zeigt Informationsstext an"; + toolStripStatusLabelInformation.AccessibleName = "Informationen"; + toolStripStatusLabelInformation.AccessibleRole = AccessibleRole.StaticText; + toolStripStatusLabelInformation.AutoToolTip = true; + toolStripStatusLabelInformation.Name = "toolStripStatusLabelInformation"; + toolStripStatusLabelInformation.Size = new Size(28, 17); + toolStripStatusLabelInformation.Text = "info"; + // + // NumericListGeneratorForm + // + AccessibleDescription = "Programmfenster"; + AccessibleName = "Programmfenster"; + AccessibleRole = AccessibleRole.Window; + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(424, 585); + Controls.Add(statusStripInfo); + Controls.Add(buttonRedo); + Controls.Add(buttonSettings); + Controls.Add(textBoxStringAfterNumber); + Controls.Add(textBoxStringBeforeNumber); + Controls.Add(statusStripStatistic); + Controls.Add(buttonUndo); + Controls.Add(labelResult); + Controls.Add(buttonCreateList); + Controls.Add(buttonInformationAboutApp); + Controls.Add(buttonExitApp); + Controls.Add(progressBar); + Controls.Add(labelProcress); + Controls.Add(textBoxList); + Controls.Add(buttonDeleteList); + Controls.Add(buttonSaveList); + Controls.Add(buttonCopyList); + Controls.Add(buttonAddToList); + Controls.Add(checkBoxFillWithZeros); + Controls.Add(numericUpDownNumberMaximum); + Controls.Add(labelNumberMax); + Controls.Add(numericUpDownNumberMinimum); + Controls.Add(labelNumberMin); + Controls.Add(labelStringAfterNumber); + Controls.Add(labelStringBeforeNumber); + FormBorderStyle = FormBorderStyle.FixedSingle; + Icon = (Icon)resources.GetObject("$this.Icon"); + Margin = new Padding(4, 3, 4, 3); + MaximizeBox = false; + Name = "NumericListGeneratorForm"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Numeric List Generator"; + Load += NumericListGeneratorForm_Load; + ((System.ComponentModel.ISupportInitialize)numericUpDownNumberMinimum).EndInit(); + ((System.ComponentModel.ISupportInitialize)numericUpDownNumberMaximum).EndInit(); + statusStripStatistic.ResumeLayout(false); + statusStripStatistic.PerformLayout(); + statusStripInfo.ResumeLayout(false); + statusStripInfo.PerformLayout(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private Label labelStringBeforeNumber; + private Label labelStringAfterNumber; + private Label labelNumberMin; + private NumericUpDown numericUpDownNumberMinimum; + private Label labelNumberMax; + private NumericUpDown numericUpDownNumberMaximum; + private CheckBox checkBoxFillWithZeros; + private Button buttonAddToList; + private Button buttonCopyList; + private Button buttonSaveList; + private Button buttonDeleteList; + private TextBox textBoxList; + private Label labelProcress; + private ProgressBar progressBar; + private Button buttonExitApp; + private Button buttonInformationAboutApp; + private Button buttonCreateList; + private ToolTip toolTip; + private Label labelResult; + private Button buttonUndo; + private StatusStrip statusStripStatistic; + private ToolStripStatusLabel toolStripStatusLabelSize; + private ToolStripStatusLabel toolStripStatusLabelLines; + private ToolStripStatusLabel toolStripStatusLabelLim; + private TextBox textBoxStringBeforeNumber; + private TextBox textBoxStringAfterNumber; + private System.ComponentModel.BackgroundWorker backgroundWorker; + private Button buttonSettings; + private Button buttonRedo; + private ToolStripStatusLabel toolStripStatusLabelTimeSpan; + private ToolStripSplitButton toolStripSplitButtonStyle; + private ToolStripMenuItem toolStripMenuItemActivateVisualStyle; + private ToolStripMenuItem toolStripMenuItemDeactivateVisualStyle; + private StatusStrip statusStripInfo; + private ToolStripStatusLabel toolStripStatusLabelInformation; + } +} + diff --git a/NumericListGeneratorForm.cs b/NumericListGeneratorForm.cs new file mode 100644 index 0000000..c83644e --- /dev/null +++ b/NumericListGeneratorForm.cs @@ -0,0 +1,372 @@ +using System.Diagnostics; +using System.Windows.Forms.VisualStyles; + +namespace Numeric_List_Generator +{ + /// + /// Main Form + /// + [DebuggerDisplay(value: $"{{{nameof(GetDebuggerDisplay)}(),nq}}")] + public partial class NumericListGeneratorForm : Form + { + /// + /// timeSpan + /// + private TimeSpan timeSpan; + + /// + /// backupListUndo, backupListRedo + /// + private string backupListUndo, backupListRedo; + + /// + /// startTime, endTime + /// + private DateTime startTime, endTime; + + #region + + /// + /// Constructor + /// + public NumericListGeneratorForm() => InitializeComponent(); + + #endregion + + #region + + /// + /// Get Debugger Display + /// + /// Return the debugger display + private string GetDebuggerDisplay() => ToString(); + + /// + /// Set a specific text to the status bar + /// + /// text with some information + private void SetStatusbarText(string text) + { + toolStripStatusLabelInformation.Enabled = !string.IsNullOrEmpty(value: text); + toolStripStatusLabelInformation.Text = text; + } + + private void UpdateStatusBarStatistic() + { + if (toolStripStatusLabelSize.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelSize.Text = $"Größe: {textBoxList.Text.Length} Bytes"; + } + if (toolStripStatusLabelLines.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelLines.Text = $"Zeilen: {textBoxList.Lines.LongLength}"; + } + if (toolStripStatusLabelTimeSpan.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelTimeSpan.Text = $"Dauer: {timeSpan:hh\\:mm\\:ss\\.ff}"; + } + if (toolStripStatusLabelLim.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelLim.Text = $"LIM: {(int)numericUpDownNumberMaximum.Value / timeSpan.TotalSeconds:N4} ips"; + } + } + + private void DisableControls() + { + textBoxStringBeforeNumber.Enabled = false; + numericUpDownNumberMinimum.Enabled = false; + numericUpDownNumberMaximum.Enabled = false; + checkBoxFillWithZeros.Enabled = false; + textBoxStringAfterNumber.Enabled = false; + buttonCreateList.Enabled = false; + buttonAddToList.Enabled = false; + buttonDeleteList.Enabled = false; + buttonUndo.Enabled = false; + buttonRedo.Enabled = false; + buttonCopyList.Enabled = false; + buttonSaveList.Enabled = false; + textBoxList.Enabled = false; + } + + private void EnableControls() + { + textBoxStringBeforeNumber.Enabled = true; + numericUpDownNumberMinimum.Enabled = true; + numericUpDownNumberMaximum.Enabled = true; + checkBoxFillWithZeros.Enabled = true; + textBoxStringAfterNumber.Enabled = true; + buttonCreateList.Enabled = true; + buttonAddToList.Enabled = true; + buttonDeleteList.Enabled = true; + buttonUndo.Enabled = true; + buttonCopyList.Enabled = true; + buttonSaveList.Enabled = true; + textBoxList.Enabled = true; + } + + #endregion + + private void NumericListGeneratorForm_Load(object sender, EventArgs e) + { + SetStatusbarText(text: string.Empty); + buttonSettings.Visible = false; + buttonUndo.Enabled = false; + buttonRedo.Enabled = false; + UpdateStatusBarStatistic(); + } + + #region Enter event handlers + + /// + /// Detect the accessibility description to set as information text in the status bar + /// + /// object sender + /// event arguments + private void SetStatusbar_Enter(object sender, EventArgs e) + { + switch (sender) + { + case TextBox textBox: SetStatusbarText(text: textBox.AccessibleDescription); break; + case Button button: SetStatusbarText(text: button.AccessibleDescription); break; + case RadioButton radioButton: SetStatusbarText(text: radioButton.AccessibleDescription); break; + case CheckBox checkBox: SetStatusbarText(text: checkBox.AccessibleDescription); break; + case DateTimePicker dateTimePicker: SetStatusbarText(text: dateTimePicker.AccessibleDescription); break; + case Label label: SetStatusbarText(text: label.AccessibleDescription); break; + case PictureBox pictureBox: SetStatusbarText(text: pictureBox.AccessibleDescription); break; + case CheckedListBox checkedListBox: SetStatusbarText(text: checkedListBox.AccessibleDescription); break; + case ComboBox box: SetStatusbarText(text: box.AccessibleDescription); break; + case DataGridView view: SetStatusbarText(text: view.AccessibleDescription); break; + case GroupBox group: SetStatusbarText(text: group.AccessibleDescription); break; + case ListBox box: SetStatusbarText(text: box.AccessibleDescription); break; + case ListView view: SetStatusbarText(text: view.AccessibleDescription); break; + case MaskedTextBox box: SetStatusbarText(text: box.AccessibleDescription); break; + case NumericUpDown numericUpDown: SetStatusbarText(text: numericUpDown.AccessibleDescription); break; + case MonthCalendar monthCalendar: SetStatusbarText(text: monthCalendar.AccessibleDescription); break; + case PropertyGrid propertyGrid: SetStatusbarText(text: propertyGrid.AccessibleDescription); break; + case RichTextBox richTextBox: SetStatusbarText(text: richTextBox.AccessibleDescription); break; + case ScrollBar scrollBar: SetStatusbarText(text: scrollBar.AccessibleDescription); break; + case TrackBar trackBar: SetStatusbarText(text: trackBar.AccessibleDescription); break; + case WebBrowser webBrowser: SetStatusbarText(text: webBrowser.AccessibleDescription); break; + case DomainUpDown domainUpDown: SetStatusbarText(text: domainUpDown.AccessibleDescription); break; + case ToolStripButton toolStripButton: SetStatusbarText(text: toolStripButton.AccessibleDescription); break; + case ToolStripMenuItem toolStripMenuItem: SetStatusbarText(text: toolStripMenuItem.AccessibleDescription); break; + case ToolStripLabel toolStripLabel: SetStatusbarText(text: toolStripLabel.AccessibleDescription); break; + case ToolStripComboBox toolStripComboBox: SetStatusbarText(text: toolStripComboBox.AccessibleDescription); break; + case ToolStripDropDown toolStripDropDown: SetStatusbarText(text: toolStripDropDown.AccessibleDescription); break; + case ToolStripDropDownButton toolStripDropDownButton: SetStatusbarText(text: toolStripDropDownButton.AccessibleDescription); break; + case ToolStripDropDownItem toolStripDropDownItem: SetStatusbarText(text: toolStripDropDownItem.AccessibleDescription); break; + case ToolStripProgressBar progressBar: SetStatusbarText(text: progressBar.AccessibleDescription); break; + case ToolStripSeparator toolStripSeparator: SetStatusbarText(text: toolStripSeparator.AccessibleDescription); break; + case ToolStripTextBox toolStripTextBox: SetStatusbarText(text: toolStripTextBox.AccessibleDescription); break; + } + } + + #endregion + + #region Leave event handlers + + /// + /// Clear the information text of the status bar + /// + /// object sender + /// event arguments + /// The parameters and are not needed, but must be indicated. + private void ClearStatusbar_Leave(object sender, EventArgs e) => SetStatusbarText(text: string.Empty); + + #endregion + + private void ButtonAddToList_Click(object sender, EventArgs e) + { + DisableControls(); + backupListUndo = textBoxList.Text; + startTime = DateTime.Now; + progressBar.Minimum = 0; + progressBar.Maximum = (int)numericUpDownNumberMaximum.Value; + progressBar.Value = 0; + progressBar.Step = 1; + backgroundWorker.RunWorkerAsync(); + } + + private void ButtonCopyList_Click(object sender, EventArgs e) + { + textBoxList.SelectAll(); + textBoxList.Copy(); + MessageBox.Show(text: "Die Liste wurde in die Zwischenablage kopiert."); + } + + private void ButtonSaveList_Click(object sender, EventArgs e) + { + using SaveFileDialog save = new() + { + FileName = "liste.txt", + Filter = "Textdatei | *.txt" + }; + if (save.ShowDialog() == DialogResult.OK) + { + StreamWriter writer = new(stream: save.OpenFile()); + try + { + writer.WriteLine(value: textBoxList.Text); + } + finally + { + writer.Close(); + MessageBox.Show(text: "Die Liste wurde in die Textdatei kopiert."); + } + } + } + + private void ButtonDeleteList_Click(object sender, EventArgs e) + { + textBoxList.Clear(); + timeSpan = TimeSpan.Zero; + UpdateStatusBarStatistic(); + } + + private void ButtonInformationAboutApp_Click(object sender, EventArgs e) + { + using AboutBoxForm formAboutBox = new(); + formAboutBox.ShowDialog(); + } + + private void ButtonExitApp_Click(object sender, EventArgs e) => Close(); + + private void ButtonCreateList_Click(object sender, EventArgs e) + { + DisableControls(); + ButtonDeleteList_Click(sender: sender, e: e); + ButtonAddToList_Click(sender: sender, e: e); + } + + private void ButtonUndo_Click(object sender, EventArgs e) + { + textBoxList.Text = backupListUndo; + buttonUndo.Enabled = false; + buttonRedo.Enabled = true; + UpdateStatusBarStatistic(); + } + + private void ButtonRedo_Click(object sender, EventArgs e) + { + textBoxList.Text = backupListRedo; + buttonUndo.Enabled = true; + buttonRedo.Enabled = false; + UpdateStatusBarStatistic(); + } + + private void BackgroundWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) + { + for (int i = (int)numericUpDownNumberMinimum.Value; i < (int)numericUpDownNumberMaximum.Value + 1; i++) + { + if (textBoxList.Text.Length > 0) + { + textBoxList.AppendText(text: Environment.NewLine); + } + if (checkBoxFillWithZeros.Checked) + { + textBoxList.AppendText(text: $"{textBoxStringBeforeNumber.Text}{i.ToString().PadLeft(totalWidth: ((int)numericUpDownNumberMaximum.Value).ToString().Length, paddingChar: '0')}{textBoxStringAfterNumber.Text}"); + } + else + { + textBoxList.AppendText(text: $"{textBoxStringBeforeNumber.Text}{i}{textBoxStringAfterNumber.Text}"); + } + backgroundWorker.ReportProgress(percentProgress: i); + endTime = DateTime.Now; + timeSpan = endTime - startTime; + UpdateStatusBarStatistic(); + backupListRedo = textBoxList.Text; + } + } + + private void BackgroundWorker_ProgressChanged(object sender, System.ComponentModel.ProgressChangedEventArgs e) => progressBar.PerformStep(); + + private void ButtonSettings_Click(object sender, EventArgs e) + { + using SettingsForm formSettings = new(); + formSettings.ShowDialog(); + } + + private void ToolStripStatusLabelSize_Click(object sender, EventArgs e) + { + if (toolStripStatusLabelSize.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelSize.ForeColor = SystemColors.GrayText; + toolStripStatusLabelSize.Text = toolStripStatusLabelSize.Tag.ToString(); + } + else + { + toolStripStatusLabelSize.ForeColor = SystemColors.ControlText; + } + } + + private void ToolStripStatusLabelLines_Click(object sender, EventArgs e) + { + if (toolStripStatusLabelLines.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelLines.ForeColor = SystemColors.GrayText; + toolStripStatusLabelLines.Text = toolStripStatusLabelLines.Tag.ToString(); + } + else + { + toolStripStatusLabelLines.ForeColor = SystemColors.ControlText; + } + } + + private void ToolStripStatusLabelTimeSpan_Click(object sender, EventArgs e) + { + if (toolStripStatusLabelTimeSpan.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelTimeSpan.ForeColor = SystemColors.GrayText; + toolStripStatusLabelTimeSpan.Text = toolStripStatusLabelTimeSpan.Tag.ToString(); + } + else + { + toolStripStatusLabelTimeSpan.ForeColor = SystemColors.ControlText; + } + } + + private void ToolStripStatusLabelLim_Click(object sender, EventArgs e) + { + if (toolStripStatusLabelLim.ForeColor == SystemColors.ControlText) + { + toolStripStatusLabelLim.ForeColor = SystemColors.GrayText; + toolStripStatusLabelLim.Text = toolStripStatusLabelLim.Tag.ToString(); + } + else + { + toolStripStatusLabelLim.ForeColor = SystemColors.ControlText; + } + } + + private void ToolStripStatusLabelStyle_Click(object sender, EventArgs e) + { + if (Application.VisualStyleState == VisualStyleState.ClientAndNonClientAreasEnabled) + { + toolStripSplitButtonStyle.Image = Properties.Resources.application; + Application.VisualStyleState = VisualStyleState.NoneEnabled; + } + else + { + toolStripSplitButtonStyle.Image = Properties.Resources.application_grey; + Application.VisualStyleState = VisualStyleState.ClientAndNonClientAreasEnabled; + } + Invalidate(invalidateChildren: true); + } + + private void ToolStripMenuItemActivateVisualStyle_Click(object sender, EventArgs e) + { + toolStripSplitButtonStyle.Image = Properties.Resources.application_grey; + Application.VisualStyleState = VisualStyleState.ClientAndNonClientAreasEnabled; + Invalidate(invalidateChildren: true); + } + + private void ToolStripMenuItemDeactivateVisualStyle_Click(object sender, EventArgs e) + { + toolStripSplitButtonStyle.Image = Properties.Resources.application; + Application.VisualStyleState = VisualStyleState.NoneEnabled; + Invalidate(invalidateChildren: true); + } + + private void BackgroundWorker_RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e) => EnableControls(); + } +} \ No newline at end of file diff --git a/NumericListGeneratorForm.resx b/NumericListGeneratorForm.resx new file mode 100644 index 0000000..ffdc2bf --- /dev/null +++ b/NumericListGeneratorForm.resx @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5, 8 + + + 5, 8 + + + 5, 8 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m + dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGMSURBVDhPpZLfK0NhGMff6937A9Tc09zaHGxHklwo + ScaFdkVxJXGxnTFJMRG5slpqfoQL2zlnmzaMXSgSpTEpF5PaSa1RLvT1vOfKxXvh5KlPz/t+z/t8n+d9 + OwzAvxCKVhCKVhCKVmDyXIp5CHcoydpmdYekaDFXQP1wBlQ4/QTPhEvR0DKjx9yzSZsnlDLrOIwE/iHa + rGibXQvHWNILUO/ekHksE4ZJtmjg8OYVgcNbtM+nQY3WeFPTgDpiOfuMntULpB8MRC9LmDoqYihyjcGN + C3jXcvCun2OQGN+6QiT/ggFa08Q7poHTn0DB+IJWeMfIfhHdkXvIizlI/kS10RcO2eXhvrp2Xz/PDl94 + Tgpqn70rp6BrgAxk0yD+WEVf7Ane3Wd0ruTRNBHLMMbqiRrC9gu+b3BNbutUzA3AmhUVZ6VvjCbLGEsb + iBcq6FAODjz0qHxEERS10vTeCZ35Yq1BtSKRSYuSICgHNfCHFRX+hsLOp+ELPqpDwN9C9HNYQShaQSha + QSj+HbAfEXhx3XgHRPIAAAAASUVORK5CYII= + + + + 95, 8 + + + 204, 8 + + + 360, 8 + + + 44 + + + + AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAIwAAADMAAAAzAAAAMwAAADMAAAAzAAAAMwAAADMAAAAzAAAAMwAA + ADMAAAAzAAAAMwAAADMAAAAzAAAAI6ampsCysrL/sLCw/6+vsP+vr7D/r6+w/6+vsP+vr7D/r6+w/6+v + sP+vr7D/r6+w/6+vsP+wsLD/srKy/6ampsCysrL///////////////////////////////////////// + //////////////////////////////////+ysrL/sLCw///////+/////////////////////v////7+ + ///+/v7//v7+//7+/v/+/v7//v7+//3+/v//////sLCw/6+vr////////P///8Z0Gv/IeiT/x3Uc//// + ///////////////////////////////////9/Pz//////6+vr/+vr6////////j8///gvpb/zYU1/+vT + vP//////Q0FA/1pYVf9samj/cW5s/15bWf9GREP//P39//////+vr6//sLCw///////2+Pn/+P////Hr + 5v/IeB//+v////3+/v////7////+//7//v////7//P37//f39v//////sLCw/7CwsP//////8/T2/9KT + T//Zqnb/z49H//X4+//09PP/9PPy//Tz8v/08/L/9PPy//Ty8f/y8fD//////7CwsP+wsLD//////+/x + 8f/x9vr/8vr///L3/P/x8vP/8fHw//Hx8P/x8fD/8fHw//Hx8P/w8O//7+/u//////+wsLD/sLCw//// + ///t7e3/7/L3/8d0GP/w8/j/8fHx//X08//39vX/9vX0//b19P/39vX/9fTz/+/u7f//////sLCw/7Cw + sP//////6evr/+zy+P/JeB7/7fP4//Dy8v9FQ0H/XVpY/29ta/9zcW7/YF5c/0lHRv/v7+7//////7Cw + sP+wsLD//////+jo6f/r8fj/ynoh/+vv9f/s7Oz/8O/u//Lx8P/x8O//8fDv//Lx8P/w7+7/6uno//// + //+wsLD/sLCw///////k5+n/z5NP/8p4Hv/m6+//5efm/+bm5f/m5+b/5ufm/+bm5f/m5+b/5ebl/+Pk + 4v//////sLCw/7CwsP//////4OHh/+Ll6P/d0MH/4uPk/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hf + 3v/g397//////7CwsP+ysrL///////////////////////////////////////////////////////// + //////////////////+ysrL/tbW177Kysv+wsLD/sLCw/7CwsP+wsLD/sLCw/7CwsP+wsLD/sLCw/7Cw + sP+wsLD/sLCw/7CwsP+ysrL/tbW17wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAIAAAAEAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAABQAAABAAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAA + ABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAAABYAAAAWAAAAFgAA + ABYAAAAWAAAAEAAAAAUAAAAQAAAAMQAAAEIAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAA + AEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAAAEMAAABDAAAAQwAA + AEMAAABDAAAAQwAAAEIAAAAxAAAAEAAAABaioqLzoqKi/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f + n/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f + n/+fn5//n5+f/5+fn/+fn5//oqKi/6KiovMAAAAWAAAAFqKiov////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////oqKi/wAAABYAAAAWn5+f//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////+fn5//AAAAFgAAABafn5////////39 + /f/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8 + /P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/8/Pz//Pz8//z8/P/9/f3//////5+fn/8AAAAWAAAAFp+f + n////////Pz8//v7+//7+/v/+/v8//v8/f/7/f3/+/z9//v7/P/7+/v/+/v7//v7+//7+/v/+/v7//v7 + +//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//z8/P//////n5+f/wAA + ABYAAAAWn5+f///////7+/v/+vr6//r6+//7/P7//P////3////9////+/3+//r6+//6+vr/+vr6//r6 + +v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+vr6//r6+v/6+vr/+/v7//// + //+fn5//AAAAFgAAABafn5////////r6+v/5+fn/+fr6//v+///LgjH/0ZBI/9CORv/8////+vv8//v7 + +//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+vr6//n5 + +f/6+vr//////5+fn/8AAAAWAAAAFp+fn///////+fn5//j4+P/4+fn/+vz///3/////////zok+//j4 + 9//8/f7///////////////////////////////////////////////////////////////////////// + ///7/Pz/+Pj5//n5+f//////n5+f/wAAABYAAAAWn5+f///////4+Pb/9/f2//f49//5+/z/3LF//8yC + MP/Wnl///P////////8+Ozr/TUpH/1RRUP9bWFf/YmBe/2lnZv9xbmz/dHFv/2xpZ/9lYmD/XVta/1ZU + U/9OS0r/QD49//7+/f/4+Pf/+Pj2//////+fn5//AAAAFgAAABafn5////////b39f/29vX/9vf2//j6 + +//7////8+7p/8h4If/6////+vv7/////v////////////////////////////////////////////// + //////////////////////7/+fr5//b39f/29/X//////5+fn/8AAAAWAAAAFp+fn///////9fT0//X0 + 9P/19fX/9/n8/8+NQ//Rk0z/0JFJ//j7///29vf/9/b2//f29v/39vb/9/b2//f29v/39vb/9/b2//f2 + 9v/39vb/9/b2//f29v/39vb/9/b2//f29v/29PX/9fT0//X09P//////n5+f/wAAABYAAAAWn5+f//// + ///08/P/9PPz//T09f/2+Pz/+f////r////5////9vj7//T09P/08/P/9PPz//Tz8//08/P/9PPz//Tz + 8//08/P/9PPz//Tz8//08/P/9PPz//Tz8//08/P/9PPz//Tz8//08/P/9PPz//////+fn5//AAAAFgAA + ABafn5////////Py8v/z8vL/8/P0//b5///IeB//yXsl/9COR//19/v/9PT0//X09P/19PT/9fT0//X0 + 9P/19PT/9fT0//X09P/19PT/9fT0//X09P/19PT/9fT0//X09P/19PT/9PPz//Py8v/z8vL//////5+f + n/8AAAAWAAAAFp+fn///////8vHx//Lx8f/y8vP/9Pf9/9CSS//WnmL/8/j8//T3+v/29fb/+/r6//38 + /f/9/P3//fz8//z8/P/8+/v/+/r7//v6+//8+/v//Pv8//38/P/9/Pz//fz8//v6+v/19PT/8vHx//Lx + 8f//////n5+f/wAAABYAAAAWn5+f///////x8O//8fDv//Hw8P/z8/X/8fPy/9mseP/QkUv/9Pj8//j4 + 9/9APTz/TktJ/1VTUv9cWln/Y2Fg/2toZ/9ycG7/dXNw/21raP9mZGH/X1xb/1dVVP9PTUz/QkA///f2 + 9f/y8e//8fDv//////+fn5//AAAAFgAAABafn5///////+/v7v/v7+7/7+/v//Dy8//y+P3/9P///8l3 + H//y9/z/8/T0//j49//6+vn/+vr5//r6+f/5+vn/+fn4//j49//4+Pf/+Pn4//n5+P/6+vn/+vr5//r6 + +f/4+Pf/8vLx/+/v7v/v7+7//////5+fn/8AAAAWAAAAFp+fn///////7u7t/+7u7f/u7+7/7/L0/8yD + Mv/QkEn/05ZV//D0+P/v8O//8PDv//Dw7//w8O//8PDv//Dw7//w8O//8PDv//Dw7//w8O//8PDv//Dw + 7//w8O//8PDv//Dw7//v7+7/7u7t/+7u7f//////n5+f/wAAABYAAAAWn5+f///////t7ev/7e3s/+3t + 7P/u8PH/7/X6//D4///w9fr/7vDx/+3t7P/t7ez/7e3s/+3t7P/t7ez/7e3s/+3t7P/t7ez/7e3s/+3t + 7P/t7ez/7e3s/+3t7P/t7ez/7e3s/+3t7P/t7ez/7e3r//////+fn5//AAAAFgAAABafn5///////+vs + 6v/s7Ov/7Ozr/+zu7v/u8/j/yHQZ/+7z+P/s7u7/7e3s/+7u7f/u7u3/7u7t/+7u7f/u7u3/7u7t/+7u + 7f/u7u3/7u7t/+7u7f/u7u3/7u7t/+7u7f/u7u3/7e3s/+zs6//r7Or//////5+fn/8AAAAWAAAAFp+f + n///////6unp/+vq6v/r6ur/6+zt/+3y+P/Jdx7/7fL4/+zs7f/u7e3/8/Ly//b19f/29fX/9fT1//X0 + 9P/08/P/9PPz//Tz8//08/P/9PP0//X09P/29fX/9vX1//Py8v/u7e3/6+rq/+rp6f//////n5+f/wAA + ABYAAAAWn5+f///////p6Oj/6unp/+rp6f/q6+z/7fL6/8l5IP/s8fj/7Ozt//Dv7/9BPz7/T01L/1ZU + U/9eW1r/ZWJh/2xqaf90cW//dnRx/25sav9nZWL/YF5d/1lXVf9QTk3/Q0FA//Dv7//r6ur/6ejo//// + //+fn5//AAAAFgAAABafn5///////+jn5//p6Oj/6ejp/+rr7v/o5OD/ynoh/+vw9//q6uv/7Ovr//Hw + 8f/08/P/9PPz//Py8//z8vL/8vHx//Lx8f/y8fH/8vHx//Ly8v/z8vL/9PPz//Tz8//x8PH/7Ovr/+no + 6P/o5+f//////5+fn/8AAAAWAAAAFp+fn///////5+bl/+jn5v/o5+f/6evt/9GVUv/KeB7/6u7y/+jo + 6P/p6Ob/6uno/+rp6P/q6ej/6uno/+rp6P/q6ej/6uno/+rp6P/q6ej/6uno/+rp6P/q6ej/6uno/+rp + 6P/p6Ob/6Ofm/+fm5f//////n5+f/wAAABYAAAAWn5+f///////m5eT/5+bl/+fm5f/n6Oj/6ezv/+LW + yP/o6ev/5+fm/+fm5f/n5uX/5+bl/+fm5f/n5uX/5+bl/+fm5f/n5uX/5+bl/+fm5f/n5uX/5+bl/+fm + 5f/n5uX/5+bl/+fm5f/n5uX/5uXk//////+fn5//AAAAFgAAABafn5///////+Xk4v/m5eT/5uXk/+bl + 5f/m5ub/5ufn/+bm5v/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl + 5P/m5eT/5uXk/+bl5P/m5eT/5uXk/+bl5P/l5OL//////5+fn/8AAAAWAAAAFp+fn///////5OLh/+Xk + 4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk + 4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Xk4//l5OP/5eTj/+Ti4f//////n5+f/wAAABYAAAAWn5+f//// + ///i4eD/4+Lh/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj + 4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/k4+L/5OPi/+Tj4v/j4uH/4uHg//////+fn5//AAAAFgAA + ABWgoKD//////+Hf3v/h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg + 3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h4N//4eDf/+Hg3//h397//////6Cg + oP8AAAAVAAAADaKiov////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////oqKi/wAAAA0AAAAEoaGhtKKiov+goKD/n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f + n/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+fn/+fn5//n5+f/5+f + n/+fn5//oKCg/6Kiov+hoaG0AAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + + + \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..f752e19 --- /dev/null +++ b/Program.cs @@ -0,0 +1,15 @@ +namespace Numeric_List_Generator +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + ApplicationConfiguration.Initialize(); + Application.Run(mainForm: new NumericListGeneratorForm()); + } + } +} \ No newline at end of file diff --git a/Properties/PublishProfiles/FolderProfile.pubxml b/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 0000000..e2662ef --- /dev/null +++ b/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,17 @@ + + + + + Release + Any CPU + bin\Release\net7.0-windows\publish\linux-arm64\ + FileSystem + <_TargetId>Folder + net7.0-windows + linux-arm64 + false + true + + \ No newline at end of file diff --git a/Properties/PublishProfiles/FolderProfile.pubxml.user b/Properties/PublishProfiles/FolderProfile.pubxml.user new file mode 100644 index 0000000..107a6d1 --- /dev/null +++ b/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -0,0 +1,10 @@ + + + + + True|2023-10-22T20:57:33.2564582Z;True|2023-10-22T22:57:24.5821996+02:00;True|2023-10-22T22:57:10.8510092+02:00;True|2023-10-22T22:56:59.5846993+02:00;True|2023-10-22T22:56:50.6496112+02:00;True|2023-10-22T22:56:42.0747904+02:00;True|2023-10-22T22:56:33.2717070+02:00;True|2023-10-22T22:56:20.4765540+02:00;True|2023-10-22T22:56:07.3276842+02:00; + + + \ No newline at end of file diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2cc6045 --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,253 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Numeric_List_Generator.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert + // -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. + // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen + // mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Numeric_List_Generator.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap add { + get { + object obj = ResourceManager.GetObject("add", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap application { + get { + object obj = ResourceManager.GetObject("application", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap application_grey { + get { + object obj = ResourceManager.GetObject("application_grey", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap bin_empty { + get { + object obj = ResourceManager.GetObject("bin_empty", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap clipboard_empty { + get { + object obj = ResourceManager.GetObject("clipboard_empty", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap cross { + get { + object obj = ResourceManager.GetObject("cross", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap diskette { + get { + object obj = ResourceManager.GetObject("diskette", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap document_index { + get { + object obj = ResourceManager.GetObject("document_index", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap door_open { + get { + object obj = ResourceManager.GetObject("door_open", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap gear_in { + get { + object obj = ResourceManager.GetObject("gear_in", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap information { + get { + object obj = ResourceManager.GetObject("information", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap page_copy { + get { + object obj = ResourceManager.GetObject("page_copy", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap paste_plain { + get { + object obj = ResourceManager.GetObject("paste_plain", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap redo { + get { + object obj = ResourceManager.GetObject("redo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap text_list_numbers { + get { + object obj = ResourceManager.GetObject("text_list_numbers", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap tick { + get { + object obj = ResourceManager.GetObject("tick", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap undo { + get { + object obj = ResourceManager.GetObject("undo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap wrench { + get { + object obj = ResourceManager.GetObject("wrench", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap wrench_orange { + get { + object obj = ResourceManager.GetObject("wrench_orange", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..982d3bc --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\application.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\application_grey.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\bin_empty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\clipboard_empty.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\cross.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\diskette.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\document_index.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\door_open.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\gear_in.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\page_copy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\paste_plain.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\redo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\text_list_numbers.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\tick.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\undo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\wrench.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\wrench_orange.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs new file mode 100644 index 0000000..b066c7f --- /dev/null +++ b/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +namespace Numeric_List_Generator.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.7.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + } +} diff --git a/Properties/Settings.settings b/Properties/Settings.settings new file mode 100644 index 0000000..15034e7 --- /dev/null +++ b/Properties/Settings.settings @@ -0,0 +1,6 @@ + + + + + + diff --git a/Resources/Numeric List Generator.ico b/Resources/Numeric List Generator.ico new file mode 100644 index 0000000..621ab66 Binary files /dev/null and b/Resources/Numeric List Generator.ico differ diff --git a/Resources/add.png b/Resources/add.png new file mode 100644 index 0000000..0ea124a Binary files /dev/null and b/Resources/add.png differ diff --git a/Resources/application.png b/Resources/application.png new file mode 100644 index 0000000..217d1ec Binary files /dev/null and b/Resources/application.png differ diff --git a/Resources/application_grey.png b/Resources/application_grey.png new file mode 100644 index 0000000..fbcb2a9 Binary files /dev/null and b/Resources/application_grey.png differ diff --git a/Resources/bin_empty.png b/Resources/bin_empty.png new file mode 100644 index 0000000..df6278b Binary files /dev/null and b/Resources/bin_empty.png differ diff --git a/Resources/clipboard_empty.png b/Resources/clipboard_empty.png new file mode 100644 index 0000000..2648bd0 Binary files /dev/null and b/Resources/clipboard_empty.png differ diff --git a/Resources/cross.png b/Resources/cross.png new file mode 100644 index 0000000..33a3837 Binary files /dev/null and b/Resources/cross.png differ diff --git a/Resources/diskette.png b/Resources/diskette.png new file mode 100644 index 0000000..d0d400e Binary files /dev/null and b/Resources/diskette.png differ diff --git a/Resources/document_index.png b/Resources/document_index.png new file mode 100644 index 0000000..95a4185 Binary files /dev/null and b/Resources/document_index.png differ diff --git a/Resources/door_open.png b/Resources/door_open.png new file mode 100644 index 0000000..2b4651e Binary files /dev/null and b/Resources/door_open.png differ diff --git a/Resources/gear_in.png b/Resources/gear_in.png new file mode 100644 index 0000000..eaf5df8 Binary files /dev/null and b/Resources/gear_in.png differ diff --git a/Resources/information.png b/Resources/information.png new file mode 100644 index 0000000..85c1876 Binary files /dev/null and b/Resources/information.png differ diff --git a/Resources/page_copy.png b/Resources/page_copy.png new file mode 100644 index 0000000..a61ec13 Binary files /dev/null and b/Resources/page_copy.png differ diff --git a/Resources/paste_plain.png b/Resources/paste_plain.png new file mode 100644 index 0000000..ee4bd3e Binary files /dev/null and b/Resources/paste_plain.png differ diff --git a/Resources/redo.png b/Resources/redo.png new file mode 100644 index 0000000..bb7673c Binary files /dev/null and b/Resources/redo.png differ diff --git a/Resources/text_list_numbers.png b/Resources/text_list_numbers.png new file mode 100644 index 0000000..0b95bee Binary files /dev/null and b/Resources/text_list_numbers.png differ diff --git a/Resources/tick.png b/Resources/tick.png new file mode 100644 index 0000000..c277e6b Binary files /dev/null and b/Resources/tick.png differ diff --git a/Resources/undo.png b/Resources/undo.png new file mode 100644 index 0000000..0c196ec Binary files /dev/null and b/Resources/undo.png differ diff --git a/Resources/wrench.png b/Resources/wrench.png new file mode 100644 index 0000000..7c8cc7a Binary files /dev/null and b/Resources/wrench.png differ diff --git a/Resources/wrench_orange.png b/Resources/wrench_orange.png new file mode 100644 index 0000000..a10dc9d Binary files /dev/null and b/Resources/wrench_orange.png differ diff --git a/SettingsForm.Designer.cs b/SettingsForm.Designer.cs new file mode 100644 index 0000000..b6a9485 --- /dev/null +++ b/SettingsForm.Designer.cs @@ -0,0 +1,190 @@ + +namespace Numeric_List_Generator +{ + partial class SettingsForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + components = new System.ComponentModel.Container(); + checkedListBoxStatusbar = new CheckedListBox(); + groupBoxStatusbar = new GroupBox(); + groupBoxWindowBehaviour = new GroupBox(); + checkedListBoxWindowBehaviour = new CheckedListBox(); + groupBoxStyle = new GroupBox(); + checkedListBoxStyle = new CheckedListBox(); + toolTip = new ToolTip(components); + buttonApply = new Button(); + buttonCancel = new Button(); + groupBoxStatusbar.SuspendLayout(); + groupBoxWindowBehaviour.SuspendLayout(); + groupBoxStyle.SuspendLayout(); + SuspendLayout(); + // + // checkedListBoxStatusbar + // + checkedListBoxStatusbar.CheckOnClick = true; + checkedListBoxStatusbar.Dock = DockStyle.Fill; + checkedListBoxStatusbar.FormattingEnabled = true; + checkedListBoxStatusbar.Items.AddRange(new object[] { "Angabe der Größe deaktivieren", "Angabe der Zeilen deaktivieren", "Angabe der Dauer deaktivieren", "Angabe des LIM deaktivieren" }); + checkedListBoxStatusbar.Location = new Point(4, 19); + checkedListBoxStatusbar.Margin = new Padding(4, 3, 4, 3); + checkedListBoxStatusbar.Name = "checkedListBoxStatusbar"; + checkedListBoxStatusbar.Size = new Size(229, 76); + checkedListBoxStatusbar.TabIndex = 0; + // + // groupBoxStatusbar + // + groupBoxStatusbar.Controls.Add(checkedListBoxStatusbar); + groupBoxStatusbar.Location = new Point(14, 135); + groupBoxStatusbar.Margin = new Padding(4, 3, 4, 3); + groupBoxStatusbar.Name = "groupBoxStatusbar"; + groupBoxStatusbar.Padding = new Padding(4, 3, 4, 3); + groupBoxStatusbar.Size = new Size(237, 98); + groupBoxStatusbar.TabIndex = 2; + groupBoxStatusbar.TabStop = false; + groupBoxStatusbar.Text = "Statusbar"; + // + // groupBoxWindowBehaviour + // + groupBoxWindowBehaviour.Controls.Add(checkedListBoxWindowBehaviour); + groupBoxWindowBehaviour.Location = new Point(14, 14); + groupBoxWindowBehaviour.Margin = new Padding(4, 3, 4, 3); + groupBoxWindowBehaviour.Name = "groupBoxWindowBehaviour"; + groupBoxWindowBehaviour.Padding = new Padding(4, 3, 4, 3); + groupBoxWindowBehaviour.Size = new Size(233, 63); + groupBoxWindowBehaviour.TabIndex = 0; + groupBoxWindowBehaviour.TabStop = false; + groupBoxWindowBehaviour.Text = "Fensterverhalten"; + // + // checkedListBoxWindowBehaviour + // + checkedListBoxWindowBehaviour.CheckOnClick = true; + checkedListBoxWindowBehaviour.Dock = DockStyle.Fill; + checkedListBoxWindowBehaviour.FormattingEnabled = true; + checkedListBoxWindowBehaviour.Items.AddRange(new object[] { "immer im Vordergrund halten", "ins Tray minimieren" }); + checkedListBoxWindowBehaviour.Location = new Point(4, 19); + checkedListBoxWindowBehaviour.Margin = new Padding(4, 3, 4, 3); + checkedListBoxWindowBehaviour.Name = "checkedListBoxWindowBehaviour"; + checkedListBoxWindowBehaviour.Size = new Size(225, 41); + checkedListBoxWindowBehaviour.TabIndex = 0; + // + // groupBoxStyle + // + groupBoxStyle.Controls.Add(checkedListBoxStyle); + groupBoxStyle.Location = new Point(14, 81); + groupBoxStyle.Margin = new Padding(4, 3, 4, 3); + groupBoxStyle.Name = "groupBoxStyle"; + groupBoxStyle.Padding = new Padding(4, 3, 4, 3); + groupBoxStyle.Size = new Size(237, 47); + groupBoxStyle.TabIndex = 1; + groupBoxStyle.TabStop = false; + groupBoxStyle.Text = "Aussehen"; + // + // checkedListBoxStyle + // + checkedListBoxStyle.CheckOnClick = true; + checkedListBoxStyle.Dock = DockStyle.Fill; + checkedListBoxStyle.FormattingEnabled = true; + checkedListBoxStyle.Items.AddRange(new object[] { "Visueller Stil deaktivieren" }); + checkedListBoxStyle.Location = new Point(4, 19); + checkedListBoxStyle.Margin = new Padding(4, 3, 4, 3); + checkedListBoxStyle.Name = "checkedListBoxStyle"; + checkedListBoxStyle.Size = new Size(229, 25); + checkedListBoxStyle.TabIndex = 0; + checkedListBoxStyle.SelectedIndexChanged += CheckedListBoxStyle_SelectedIndexChanged; + // + // buttonApply + // + buttonApply.DialogResult = DialogResult.OK; + buttonApply.Image = Numeric_List_Generator.Properties.Resources.tick; + buttonApply.Location = new Point(14, 240); + buttonApply.Margin = new Padding(4, 3, 4, 3); + buttonApply.Name = "buttonApply"; + buttonApply.Size = new Size(88, 27); + buttonApply.TabIndex = 3; + buttonApply.Text = "&Okay"; + buttonApply.TextAlign = ContentAlignment.MiddleRight; + buttonApply.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonApply, "Wendet die Einstellungen an"); + buttonApply.UseVisualStyleBackColor = true; + buttonApply.Click += ButtonApply_Click; + // + // buttonCancel + // + buttonCancel.DialogResult = DialogResult.Cancel; + buttonCancel.Image = Numeric_List_Generator.Properties.Resources.cross; + buttonCancel.Location = new Point(163, 240); + buttonCancel.Margin = new Padding(4, 3, 4, 3); + buttonCancel.Name = "buttonCancel"; + buttonCancel.Size = new Size(88, 27); + buttonCancel.TabIndex = 4; + buttonCancel.Text = "&Abbruch"; + buttonCancel.TextAlign = ContentAlignment.MiddleRight; + buttonCancel.TextImageRelation = TextImageRelation.ImageBeforeText; + toolTip.SetToolTip(buttonCancel, "Bricht den Vorgang ab"); + buttonCancel.UseVisualStyleBackColor = true; + buttonCancel.Click += ButtonCancel_Click; + // + // SettingsForm + // + AcceptButton = buttonApply; + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + CancelButton = buttonCancel; + ClientSize = new Size(265, 280); + Controls.Add(buttonCancel); + Controls.Add(buttonApply); + Controls.Add(groupBoxStyle); + Controls.Add(groupBoxWindowBehaviour); + Controls.Add(groupBoxStatusbar); + FormBorderStyle = FormBorderStyle.FixedToolWindow; + Margin = new Padding(4, 3, 4, 3); + MaximizeBox = false; + MinimizeBox = false; + Name = "SettingsForm"; + ShowInTaskbar = false; + StartPosition = FormStartPosition.CenterParent; + Text = "Einstellungen"; + groupBoxStatusbar.ResumeLayout(false); + groupBoxWindowBehaviour.ResumeLayout(false); + groupBoxStyle.ResumeLayout(false); + ResumeLayout(false); + } + + #endregion + + private CheckedListBox checkedListBoxStatusbar; + private GroupBox groupBoxStatusbar; + private GroupBox groupBoxWindowBehaviour; + private CheckedListBox checkedListBoxWindowBehaviour; + private GroupBox groupBoxStyle; + private CheckedListBox checkedListBoxStyle; + private Button buttonApply; + private ToolTip toolTip; + private Button buttonCancel; + } +} \ No newline at end of file diff --git a/SettingsForm.cs b/SettingsForm.cs new file mode 100644 index 0000000..177f280 --- /dev/null +++ b/SettingsForm.cs @@ -0,0 +1,23 @@ +using System.Windows.Forms.VisualStyles; + +namespace Numeric_List_Generator +{ + public partial class SettingsForm : Form + { + public SettingsForm() => InitializeComponent(); + + private void CheckedListBoxStyle_SelectedIndexChanged(object sender, EventArgs e) + { + Application.VisualStyleState = checkedListBoxStyle.GetItemChecked(index: 0) ? VisualStyleState.NoneEnabled : VisualStyleState.ClientAndNonClientAreasEnabled; + Invalidate(invalidateChildren: true); + } + + private void ButtonApply_Click(object sender, EventArgs e) + { + } + + private void ButtonCancel_Click(object sender, EventArgs e) + { + } + } +} diff --git a/SettingsForm.resx b/SettingsForm.resx new file mode 100644 index 0000000..b35b2c6 --- /dev/null +++ b/SettingsForm.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file