[CUETools] Update offset entry

A check of textBoxOffset.Text for invalid values (empty or '-' only)
is now done in a textBoxOffset_Validating() event instead of
previously textBoxOffset_TextChanged().
This avoids observed difficulties, when entering negative offsets,
where the zero could be in the way.
This commit is contained in:
Wolfgang Stöggl
2020-02-19 12:36:34 +01:00
parent fe3cf97ef7
commit cacc461c07
2 changed files with 36 additions and 4 deletions

View File

@@ -640,6 +640,7 @@ namespace JDP {
this.toolStripSplitButtonInputBrowser});
this.toolStripInput.Name = "toolStripInput";
this.toolStripInput.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStripInput.Click += new System.EventHandler(this.toolStripInput_Click);
//
// toolStripLabelInput
//
@@ -697,6 +698,7 @@ namespace JDP {
this.toolStripOutput.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
this.toolStripOutput.Name = "toolStripOutput";
this.toolStripOutput.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStripOutput.Click += new System.EventHandler(this.toolStripOutput_Click);
//
// toolStripLabelOutput
//
@@ -848,6 +850,7 @@ namespace JDP {
this.textBoxOffset.Name = "textBoxOffset";
this.textBoxOffset.TextChanged += new System.EventHandler(this.textBoxOffset_TextChanged);
this.textBoxOffset.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxOffset_KeyPress);
this.textBoxOffset.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxOffset_Validating);
//
// panelGo
//
@@ -902,6 +905,7 @@ namespace JDP {
this.toolStripMenu.Name = "toolStripMenu";
this.toolStripMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
this.toolStripMenu.Stretch = true;
this.toolStripMenu.Click += new System.EventHandler(this.toolStripMenu_Click);
//
// toolStripDropDownButtonProfile
//