Пример #1
0
 public bool SaveFileAs()
 => EditorLoadSave.SaveFileAs(this);
Пример #2
0
 public bool LoadFile(string file, bool updateCursorPosition = true)
 => EditorLoadSave.LoadFile(this, file, updateCursorPosition);
Пример #3
0
 public bool SaveFileAs() => IfNotReadOnly(() => EditorLoadSave.SaveFileAs(this));
Пример #4
0
 public bool SaveIfModified()
 => EditorLoadSave.SaveIfModified(this);
Пример #5
0
 public void InsertFile(string file) => IfNotReadOnly(() => EditorLoadSave.InsertFile(this, file));
Пример #6
0
 public bool SaveIfModified() => IfNotReadOnly(() => EditorLoadSave.SaveIfModified(this));
Пример #7
0
 public void NewFile() => IfNotReadOnly(() => EditorLoadSave.NewFile(this));
Пример #8
0
 public void OpenFile(string file) => IfNotReadOnly(() => EditorLoadSave.OpenFile(this, file));
Пример #9
0
        private static void Execute(object sender, ExecutedRoutedEventArgs e)
        {
            var mainWindow = (MainWindow)sender;

            EditorLoadSave.InsertFile(mainWindow.Editor, null);
        }
Пример #10
0
 private void ExecuteSaveAsHtmlTemplate(object sender, ExecutedRoutedEventArgs e) => EditorLoadSave.SaveFileAs(Editor, "html-with-template");
Пример #11
0
 private void ExecuteSaveAsHtml(object sender, ExecutedRoutedEventArgs e) => EditorLoadSave.SaveFileAs(Editor, "html");
        private static void Execute(object sender, ExecutedRoutedEventArgs e)
        {
            var mainWindow = (MainWindow)sender;

            EditorLoadSave.SaveFileAs(mainWindow.Editor, "html-with-template");
        }
Пример #13
0
        private static void Execute(object sender, ExecutedRoutedEventArgs e)
        {
            var mainWindow = (MainWindow)sender;

            EditorLoadSave.OpenFile(mainWindow.Editor, e.Parameter as string);
        }