Example #1
0
        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);
        }
Example #2
0
        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;
        }