コード例 #1
0
        //========================================================================================
        // DoEdited()
        //========================================================================================

        void DoEdited(object sender, EditorEventArgs e)
        {
            if (Edited != null)
            {
                Edited(sender, e);
            }
        }
コード例 #2
0
ファイル: QueryWindow.cs プロジェクト: stevencohn/Orqa
        private void DoEdited(object sender, EditorEventArgs e)
        {
            switch (e.Action)
            {
            case EditorAction.HasContent:
                commander.TextControls.IsEnabled = true;
                break;

            case EditorAction.HasNoContent:
                commander.TextControls.IsEnabled = false;
                break;

            case EditorAction.Unsaved:
                commander.SaveControls.IsEnabled = true;
                SetTitle();
                break;
            }

            commander.RedoControls.IsEnabled = editorView.CanRedo;
            commander.UndoControls.IsEnabled = editorView.CanUndo;
        }