Exemplo n.º 1
0
        public ReadOnlyDialogResult ShowReadOnlyDialog(bool allowOverwriteOption)
        {
            if (false != TextEditorControl.Instance.IsInPlaybackMode)
                return ReadOnlyDialogResult.OverWrite;

            ReadOnlyPrompt dialog = new ReadOnlyPrompt(allowOverwriteOption);
            dialog.ShowDialog();
            return dialog.userOption;
        }
Exemplo n.º 2
0
        public ReadOnlyDialogResult ShowReadOnlyDialog(bool allowOverwriteOption)
        {
            if (false != TextEditorControl.Instance.IsInPlaybackMode)
            {
                return(ReadOnlyDialogResult.OverWrite);
            }

            ReadOnlyPrompt dialog = new ReadOnlyPrompt(allowOverwriteOption);

            dialog.ShowDialog();
            return(dialog.userOption);
        }