public bool Execute(IWin32Window owner, FindData Data) { edtText.Text = Data.Text; chkMatchCase.Checked = Data.MatchCase; chkSearchUp.Checked = Data.SearchUp; if (ShowDialog(owner) == DialogResult.OK) { Data.Text = edtText.Text; Data.MatchCase = chkMatchCase.Checked; Data.SearchUp = chkSearchUp.Checked; return(true); } return(false); }
public bool Execute(IWin32Window owner, FindData Data) { edtText.Text = Data.Text; chkMatchCase.Checked = Data.MatchCase; chkSearchUp.Checked = Data.SearchUp; if (ShowDialog(owner) == DialogResult.OK) { Data.Text = edtText.Text; Data.MatchCase = chkMatchCase.Checked; Data.SearchUp = chkSearchUp.Checked; return true; } return false; }