コード例 #1
0
ファイル: NotepadClone.Find.cs プロジェクト: Dev9er/WpfStudy
        // 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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        //=======================================================================================================================
        // 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();                                     // ��޸��� ���̾�α� ����
        }
コード例 #4
0
        // 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();
        }