Ejemplo n.º 1
0
        void FindDialogOnFindNext(object sender, EventArgs e)
        {
            FindReplaceDialog dlg = sender as FindReplaceDialog;

            strFindWhat = dlg.FindWhat;
            strcomp     = dlg.MatchCase ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase;
            dirFind     = dlg.Direction;

            FindNext();
        }
Ejemplo n.º 2
0
        // Event handler installed for Find/Replace dialog box "Find Next" button.
        void FindDialogOnFindNext(object sender, EventArgs args)
        {
            FindReplaceDialog dlg = sender as FindReplaceDialog;

            // Get properties from dialog box.
            strFindWhat = dlg.FindWhat;
            strcomp     = dlg.MatchCase ? StringComparison.Ordinal :
                          StringComparison.OrdinalIgnoreCase;
            dirFind = dlg.Direction;

            // Call FindNext to do the actual find.
            FindNext();
        }