NBTExplorer/Windows/Find.cs

46 lines
907 B
C#
Raw Normal View History

2011-12-04 07:18:27 +00:00
using System;
using System.Windows.Forms;
namespace NBTExplorer.Windows
2011-12-04 07:18:27 +00:00
{
public partial class Find : Form
{
public Find ()
{
InitializeComponent();
}
public bool MatchName
{
get { return _cbName.Checked; }
}
public bool MatchValue
{
get { return _cbValue.Checked; }
}
public string NameToken
{
get { return _textName.Text; }
}
public string ValueToken
{
get { return _textValue.Text; }
}
private void _buttonFind_Click (object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
private void _buttonCancel_Click (object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
Close();
}
}
}