From 05b01a16422d4f7324765c313dc5b62454648e3f Mon Sep 17 00:00:00 2001 From: Jens True Date: Fri, 7 Oct 2022 22:24:46 +0200 Subject: [PATCH] Now builds without About box --- MainUI.Designer.cs | 23 ++-------------- MainUI.cs | 7 ----- Settings.Designer.cs | 62 -------------------------------------------- Settings.cs | 33 ----------------------- 4 files changed, 2 insertions(+), 123 deletions(-) delete mode 100644 Settings.Designer.cs delete mode 100644 Settings.cs diff --git a/MainUI.Designer.cs b/MainUI.Designer.cs index 0d722f4..0aeb6e5 100644 --- a/MainUI.Designer.cs +++ b/MainUI.Designer.cs @@ -31,7 +31,6 @@ this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainUI)); this.btnTest = new System.Windows.Forms.Button(); - this.buttonHelp = new System.Windows.Forms.Button(); this.txtDebug = new System.Windows.Forms.TextBox(); this.panel1 = new System.Windows.Forms.Panel(); this.textStartProcedure = new System.Windows.Forms.TextBox(); @@ -74,17 +73,6 @@ this.btnTest.UseVisualStyleBackColor = true; this.btnTest.Click += new System.EventHandler(this.btnTest_Click); // - // buttonHelp - // - this.buttonHelp.Location = new System.Drawing.Point(4, 61); - this.buttonHelp.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); - this.buttonHelp.Name = "buttonHelp"; - this.buttonHelp.Size = new System.Drawing.Size(88, 27); - this.buttonHelp.TabIndex = 14; - this.buttonHelp.Text = "Hjælp mm."; - this.buttonHelp.UseVisualStyleBackColor = true; - this.buttonHelp.Click += new System.EventHandler(this.buttonHelp_Click); - // // txtDebug // this.txtDebug.Dock = System.Windows.Forms.DockStyle.Fill; @@ -186,7 +174,6 @@ this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Complete, - this.nameDataGridViewTextBoxColumn, this.DNF}); this.txtLog.SetColumnSpan(this.grid, 2); this.grid.DataSource = this.entryBindingSource; @@ -223,7 +210,7 @@ this.nameDataGridViewTextBoxColumn.DataPropertyName = "SailNumber"; this.nameDataGridViewTextBoxColumn.HeaderText = "Sejlnummer"; this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn"; - this.nameDataGridViewTextBoxColumn.ReadOnly = true; + this.nameDataGridViewTextBoxColumn.Width = 198; // // DNF // @@ -233,10 +220,6 @@ this.DNF.Text = "Udgået"; this.DNF.UseColumnTextForButtonValue = true; // - // entryBindingSource - // - this.entryBindingSource.DataSource = typeof(Tidstagning.Entry); - // // txtLog // this.txtLog.ColumnCount = 3; @@ -282,7 +265,6 @@ this.flowLayoutPanelConfiguration.Controls.Add(this.label1); this.flowLayoutPanelConfiguration.Controls.Add(this.comboComport); this.flowLayoutPanelConfiguration.Controls.Add(this.label2); - this.flowLayoutPanelConfiguration.Controls.Add(this.buttonHelp); this.flowLayoutPanelConfiguration.Controls.Add(this.buttonConfig); this.flowLayoutPanelConfiguration.Dock = System.Windows.Forms.DockStyle.Fill; this.flowLayoutPanelConfiguration.Location = new System.Drawing.Point(4, 635); @@ -355,7 +337,7 @@ // // buttonConfig // - this.buttonConfig.Location = new System.Drawing.Point(100, 61); + this.buttonConfig.Location = new System.Drawing.Point(4, 61); this.buttonConfig.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.buttonConfig.Name = "buttonConfig"; this.buttonConfig.Size = new System.Drawing.Size(105, 27); @@ -401,7 +383,6 @@ private System.Windows.Forms.BindingSource entryBindingSource; private System.Windows.Forms.Button btnTest; - private System.Windows.Forms.Button buttonHelp; private System.Windows.Forms.TextBox txtDebug; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button btnStart; diff --git a/MainUI.cs b/MainUI.cs index ae03888..09c3cba 100644 --- a/MainUI.cs +++ b/MainUI.cs @@ -136,13 +136,6 @@ namespace Tidstagning checkStartProcedure.Enabled = true; flowLayoutPanelConfiguration.Enabled = true; } - - private void buttonHelp_Click(object sender, EventArgs e) - { - AboutBox aboutbox = new AboutBox(); - aboutbox.Show(); - } - private void btnTest_Click(object sender, EventArgs e) { horn.Sound((uint)Properties.Settings.Default.SignalLength); diff --git a/Settings.Designer.cs b/Settings.Designer.cs deleted file mode 100644 index ad5a00e..0000000 --- a/Settings.Designer.cs +++ /dev/null @@ -1,62 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Tidstagning { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.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; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("N/A")] - public string ComPort { - get { - return ((string)(this["ComPort"])); - } - set { - this["ComPort"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool AutoStartProcedure { - get { - return ((bool)(this["AutoStartProcedure"])); - } - set { - this["AutoStartProcedure"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("500")] - public uint SignalLength { - get { - return ((uint)(this["SignalLength"])); - } - set { - this["SignalLength"] = value; - } - } - } -} diff --git a/Settings.cs b/Settings.cs deleted file mode 100644 index d630a32..0000000 --- a/Settings.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Tidstagning.Properties -{ - - - // This class allows you to handle specific events on the settings class: - // The SettingChanging event is raised before a setting's value is changed. - // The PropertyChanged event is raised after a setting's value is changed. - // The SettingsLoaded event is raised after the setting values are loaded. - // The SettingsSaving event is raised before the setting values are saved. - internal sealed partial class Settings - { - - public Settings() - { - // // To add event handlers for saving and changing settings, uncomment the lines below: - // - // this.SettingChanging += this.SettingChangingEventHandler; - // - // this.SettingsSaving += this.SettingsSavingEventHandler; - // - } - - private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) - { - // Add code to handle the SettingChangingEvent event here. - } - - private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) - { - // Add code to handle the SettingsSaving event here. - } - } -}