Change checkbox behavior on Basic Find

This commit is contained in:
Justin Aquadro 2014-04-01 22:26:05 -04:00
parent 2a043ba09c
commit c9014d8b1f
3 changed files with 14 additions and 4 deletions

View file

@ -38,8 +38,6 @@
// _cbName // _cbName
// //
this._cbName.AutoSize = true; this._cbName.AutoSize = true;
this._cbName.Checked = true;
this._cbName.CheckState = System.Windows.Forms.CheckState.Checked;
this._cbName.Location = new System.Drawing.Point(13, 13); this._cbName.Location = new System.Drawing.Point(13, 13);
this._cbName.Name = "_cbName"; this._cbName.Name = "_cbName";
this._cbName.Size = new System.Drawing.Size(57, 17); this._cbName.Size = new System.Drawing.Size(57, 17);
@ -65,6 +63,7 @@
this._textName.Name = "_textName"; this._textName.Name = "_textName";
this._textName.Size = new System.Drawing.Size(273, 20); this._textName.Size = new System.Drawing.Size(273, 20);
this._textName.TabIndex = 2; this._textName.TabIndex = 2;
this._textName.TextChanged += new System.EventHandler(this._textName_TextChanged);
// //
// _textValue // _textValue
// //
@ -74,6 +73,7 @@
this._textValue.Name = "_textValue"; this._textValue.Name = "_textValue";
this._textValue.Size = new System.Drawing.Size(273, 20); this._textValue.Size = new System.Drawing.Size(273, 20);
this._textValue.TabIndex = 3; this._textValue.TabIndex = 3;
this._textValue.TextChanged += new System.EventHandler(this._textValue_TextChanged);
// //
// _buttonFind // _buttonFind
// //

View file

@ -41,5 +41,15 @@ namespace NBTExplorer.Windows
DialogResult = DialogResult.Cancel; DialogResult = DialogResult.Cancel;
Close(); Close();
} }
private void _textName_TextChanged (object sender, EventArgs e)
{
_cbName.Checked = true;
}
private void _textValue_TextChanged (object sender, EventArgs e)
{
_cbValue.Checked = true;
}
} }
} }

View file

@ -112,9 +112,9 @@
<value>2.0</value> <value>2.0</value>
</resheader> </resheader>
<resheader name="reader"> <resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
</root> </root>