Now builds without About box
This commit is contained in:
parent
a1792ad321
commit
05b01a1642
23
MainUI.Designer.cs
generated
23
MainUI.Designer.cs
generated
@ -31,7 +31,6 @@
|
|||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainUI));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainUI));
|
||||||
this.btnTest = new System.Windows.Forms.Button();
|
this.btnTest = new System.Windows.Forms.Button();
|
||||||
this.buttonHelp = new System.Windows.Forms.Button();
|
|
||||||
this.txtDebug = new System.Windows.Forms.TextBox();
|
this.txtDebug = new System.Windows.Forms.TextBox();
|
||||||
this.panel1 = new System.Windows.Forms.Panel();
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
this.textStartProcedure = new System.Windows.Forms.TextBox();
|
this.textStartProcedure = new System.Windows.Forms.TextBox();
|
||||||
@ -74,17 +73,6 @@
|
|||||||
this.btnTest.UseVisualStyleBackColor = true;
|
this.btnTest.UseVisualStyleBackColor = true;
|
||||||
this.btnTest.Click += new System.EventHandler(this.btnTest_Click);
|
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
|
// txtDebug
|
||||||
//
|
//
|
||||||
this.txtDebug.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.txtDebug.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@ -186,7 +174,6 @@
|
|||||||
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.grid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.grid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
this.Complete,
|
this.Complete,
|
||||||
this.nameDataGridViewTextBoxColumn,
|
|
||||||
this.DNF});
|
this.DNF});
|
||||||
this.txtLog.SetColumnSpan(this.grid, 2);
|
this.txtLog.SetColumnSpan(this.grid, 2);
|
||||||
this.grid.DataSource = this.entryBindingSource;
|
this.grid.DataSource = this.entryBindingSource;
|
||||||
@ -223,7 +210,7 @@
|
|||||||
this.nameDataGridViewTextBoxColumn.DataPropertyName = "SailNumber";
|
this.nameDataGridViewTextBoxColumn.DataPropertyName = "SailNumber";
|
||||||
this.nameDataGridViewTextBoxColumn.HeaderText = "Sejlnummer";
|
this.nameDataGridViewTextBoxColumn.HeaderText = "Sejlnummer";
|
||||||
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
|
||||||
this.nameDataGridViewTextBoxColumn.ReadOnly = true;
|
this.nameDataGridViewTextBoxColumn.Width = 198;
|
||||||
//
|
//
|
||||||
// DNF
|
// DNF
|
||||||
//
|
//
|
||||||
@ -233,10 +220,6 @@
|
|||||||
this.DNF.Text = "Udgået";
|
this.DNF.Text = "Udgået";
|
||||||
this.DNF.UseColumnTextForButtonValue = true;
|
this.DNF.UseColumnTextForButtonValue = true;
|
||||||
//
|
//
|
||||||
// entryBindingSource
|
|
||||||
//
|
|
||||||
this.entryBindingSource.DataSource = typeof(Tidstagning.Entry);
|
|
||||||
//
|
|
||||||
// txtLog
|
// txtLog
|
||||||
//
|
//
|
||||||
this.txtLog.ColumnCount = 3;
|
this.txtLog.ColumnCount = 3;
|
||||||
@ -282,7 +265,6 @@
|
|||||||
this.flowLayoutPanelConfiguration.Controls.Add(this.label1);
|
this.flowLayoutPanelConfiguration.Controls.Add(this.label1);
|
||||||
this.flowLayoutPanelConfiguration.Controls.Add(this.comboComport);
|
this.flowLayoutPanelConfiguration.Controls.Add(this.comboComport);
|
||||||
this.flowLayoutPanelConfiguration.Controls.Add(this.label2);
|
this.flowLayoutPanelConfiguration.Controls.Add(this.label2);
|
||||||
this.flowLayoutPanelConfiguration.Controls.Add(this.buttonHelp);
|
|
||||||
this.flowLayoutPanelConfiguration.Controls.Add(this.buttonConfig);
|
this.flowLayoutPanelConfiguration.Controls.Add(this.buttonConfig);
|
||||||
this.flowLayoutPanelConfiguration.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.flowLayoutPanelConfiguration.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.flowLayoutPanelConfiguration.Location = new System.Drawing.Point(4, 635);
|
this.flowLayoutPanelConfiguration.Location = new System.Drawing.Point(4, 635);
|
||||||
@ -355,7 +337,7 @@
|
|||||||
//
|
//
|
||||||
// buttonConfig
|
// 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.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
||||||
this.buttonConfig.Name = "buttonConfig";
|
this.buttonConfig.Name = "buttonConfig";
|
||||||
this.buttonConfig.Size = new System.Drawing.Size(105, 27);
|
this.buttonConfig.Size = new System.Drawing.Size(105, 27);
|
||||||
@ -401,7 +383,6 @@
|
|||||||
|
|
||||||
private System.Windows.Forms.BindingSource entryBindingSource;
|
private System.Windows.Forms.BindingSource entryBindingSource;
|
||||||
private System.Windows.Forms.Button btnTest;
|
private System.Windows.Forms.Button btnTest;
|
||||||
private System.Windows.Forms.Button buttonHelp;
|
|
||||||
private System.Windows.Forms.TextBox txtDebug;
|
private System.Windows.Forms.TextBox txtDebug;
|
||||||
private System.Windows.Forms.Panel panel1;
|
private System.Windows.Forms.Panel panel1;
|
||||||
private System.Windows.Forms.Button btnStart;
|
private System.Windows.Forms.Button btnStart;
|
||||||
|
@ -136,13 +136,6 @@ namespace Tidstagning
|
|||||||
checkStartProcedure.Enabled = true;
|
checkStartProcedure.Enabled = true;
|
||||||
flowLayoutPanelConfiguration.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)
|
private void btnTest_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
horn.Sound((uint)Properties.Settings.Default.SignalLength);
|
horn.Sound((uint)Properties.Settings.Default.SignalLength);
|
||||||
|
62
Settings.Designer.cs
generated
62
Settings.Designer.cs
generated
@ -1,62 +0,0 @@
|
|||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// 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.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
33
Settings.cs
33
Settings.cs
@ -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.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user