From 8befd8a5674ff0a185f137d855ced62f006a78bb Mon Sep 17 00:00:00 2001 From: Jens True Date: Sat, 12 Jun 2021 13:03:41 +0200 Subject: [PATCH] Pre-select 500ms sound. Remove shorter options --- Tidstagning/Form1.Designer.cs | 39 +++++++++++++++++------------------ Tidstagning/Form1.cs | 2 +- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/Tidstagning/Form1.Designer.cs b/Tidstagning/Form1.Designer.cs index a914211..cafb097 100644 --- a/Tidstagning/Form1.Designer.cs +++ b/Tidstagning/Form1.Designer.cs @@ -48,20 +48,20 @@ this.txtHeader = new System.Windows.Forms.TextBox(); this.grid = new System.Windows.Forms.DataGridView(); this.Complete = new System.Windows.Forms.DataGridViewButtonColumn(); + this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.DNF = new System.Windows.Forms.DataGridViewButtonColumn(); + this.entryBindingSource = new System.Windows.Forms.BindingSource(this.components); this.txtLog = new System.Windows.Forms.TableLayoutPanel(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.comboSoundTime = new System.Windows.Forms.ComboBox(); - this.Clock = new System.Windows.Forms.Timer(this.components); this.label1 = new System.Windows.Forms.Label(); - this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.entryBindingSource = new System.Windows.Forms.BindingSource(this.components); + this.Clock = new System.Windows.Forms.Timer(this.components); this.panel2.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grid)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.entryBindingSource)).BeginInit(); this.txtLog.SuspendLayout(); this.flowLayoutPanel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.entryBindingSource)).BeginInit(); this.SuspendLayout(); // // countdowntimer @@ -256,6 +256,13 @@ this.Complete.ReadOnly = true; this.Complete.Text = "Mål"; // + // nameDataGridViewTextBoxColumn + // + this.nameDataGridViewTextBoxColumn.DataPropertyName = "SailNumber"; + this.nameDataGridViewTextBoxColumn.HeaderText = "Sejlnummer"; + this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn"; + this.nameDataGridViewTextBoxColumn.ReadOnly = true; + // // DNF // this.DNF.HeaderText = "DNF"; @@ -264,6 +271,10 @@ this.DNF.Text = "Udgået"; this.DNF.UseColumnTextForButtonValue = true; // + // entryBindingSource + // + this.entryBindingSource.DataSource = typeof(Tidstagning.Entry); + // // txtLog // this.txtLog.ColumnCount = 3; @@ -303,7 +314,6 @@ this.comboSoundTime.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboSoundTime.FormattingEnabled = true; this.comboSoundTime.Items.AddRange(new object[] { - "250", "500", "750", "1000", @@ -317,11 +327,6 @@ this.comboSoundTime.Size = new System.Drawing.Size(97, 21); this.comboSoundTime.TabIndex = 26; // - // Clock - // - this.Clock.Enabled = true; - this.Clock.Tick += new System.EventHandler(this.Clock_Tick); - // // label1 // this.label1.AutoSize = true; @@ -331,16 +336,10 @@ this.label1.TabIndex = 27; this.label1.Text = "Millisekunder"; // - // nameDataGridViewTextBoxColumn + // Clock // - this.nameDataGridViewTextBoxColumn.DataPropertyName = "SailNumber"; - this.nameDataGridViewTextBoxColumn.HeaderText = "Sejlnummer"; - this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn"; - this.nameDataGridViewTextBoxColumn.ReadOnly = true; - // - // entryBindingSource - // - this.entryBindingSource.DataSource = typeof(Tidstagning.Entry); + this.Clock.Enabled = true; + this.Clock.Tick += new System.EventHandler(this.Clock_Tick); // // Form1 // @@ -359,11 +358,11 @@ this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.grid)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.entryBindingSource)).EndInit(); this.txtLog.ResumeLayout(false); this.txtLog.PerformLayout(); this.flowLayoutPanel1.ResumeLayout(false); this.flowLayoutPanel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.entryBindingSource)).EndInit(); this.ResumeLayout(false); } diff --git a/Tidstagning/Form1.cs b/Tidstagning/Form1.cs index 59f6a2f..e26efb9 100644 --- a/Tidstagning/Form1.cs +++ b/Tidstagning/Form1.cs @@ -41,7 +41,7 @@ namespace Tidstagning comboComport.Items.Add(port); } - comboSoundTime.SelectedIndex = 3; + comboSoundTime.SelectedIndex = 0; if (comboComport.Items.Count != 0) { comboComport.SelectedIndex = 0;