Example #1
0
        private void editFindMenuItem_Click(object sender, RoutedEventArgs e)
        {
            // Instantiate the dialog box
            var dlg = new FindDialogBox(documentTextBox) {Owner = this};

            // Configure the dialog box
            dlg.TextFound += dlg_TextFound;

            // Open the dialog box modally
            dlg.Show();
        }
Example #2
0
        private void editFindMenuItem_Click(object sender, RoutedEventArgs e)
        {
            // Instantiate the dialog box
            var dlg = new FindDialogBox(documentTextBox)
            {
                Owner = this
            };

            // Configure the dialog box
            dlg.TextFound += dlg_TextFound;

            // Open the dialog box modally
            dlg.Show();
        }