// Event handler for Replace menu item. void ReplaceOnExecute(object sender, ExecutedRoutedEventArgs args) { ReplaceDialog dlg = new ReplaceDialog(this); dlg.FindWhat = strFindWhat; dlg.ReplaceWith = strReplaceWith; dlg.MatchCase = strcomp == StringComparison.Ordinal; dlg.Direction = dirFind; // Install event handlers. dlg.FindNext += FindDialogOnFindNext; dlg.Replace += ReplaceDialogOnReplace; dlg.ReplaceAll += ReplaceDialogOnReplaceAll; dlg.Show(); }
void ReplaceOnExecute(object sender, ExecutedRoutedEventArgs e) { ReplaceDialog dlg = new ReplaceDialog(this) { FindWhat = strFindWhat, ReplaceWith = strReplaceWith, MatchCase = strcomp == StringComparison.Ordinal, Direction = dirFind }; dlg.FindNext += FindDialogOnFindNext; dlg.Replace += ReplaceDialogOnReplace; dlg.ReplaceAll += ReplaceDialogOnReplaceAll; dlg.Show(); }
//======================================================================================================================= // Replace �� �� ���� �̺�Ʈ �ڵ鷯 void ReplaceOnExecute(object sender, ExecutedRoutedEventArgs args) { ReplaceDialog dlg = new ReplaceDialog(this); //dlg �ʱ�ȭ dlg.FindWhat = strFindWhat; // ���� strFindWhat������ ����ִ� ���ڿ��� dlg.FindWhat�� ���� dlg.ReplaceWith = strReplaceWith; // ���� strReplaceWith������ ����ִ� ���ڿ� dlg.ReplaceWith�� ���� dlg.MatchCase = strcomp == StringComparison.Ordinal; dlg.Direction = dirFind; // ���� ��ư�� ���� �˻� ���� ����Ʈ�� Down // Install �̺�Ʈ �ڵ鷯 dlg.FindNext += FindDialogOnFindNext; // FindDialogOnFindNext �̺�Ʈ ���� dlg.Replace += ReplaceDialogOnReplace; // ReplaceDialogOnReplace �̺�Ʈ ���� dlg.ReplaceAll += ReplaceDialogOnReplaceAll; // ReplaceDialogOnReplaceAll �̺�Ʈ ���� dlg.Show(); // ����� ���̾�α� ���� }
// Event handler for Replace menu item. void ReplaceOnExecute(object sender, ExecutedRoutedEventArgs args) { ReplaceDialog dlg = new ReplaceDialog(this); dlg.FindWhat = strFindWhat; dlg.ReplaceWith = strReplaceWith; dlg.MatchCase = strcomp == StringComparison.Ordinal; dlg.Direction = dirFind; // Install event handlers. dlg.FindNext += FindDialogOnFindNext; dlg.Replace += ReplaceDialogOnReplace; dlg.ReplaceAll += ReplaceDialogOnReplaceAll; dlg.Show(); }