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

            EditorLoadSave.InsertFile(mainWindow.Editor, null);
        }
Example #10
0
 private void ExecuteSaveAsHtmlTemplate(object sender, ExecutedRoutedEventArgs e) => EditorLoadSave.SaveFileAs(Editor, "html-with-template");
Example #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");
        }
Example #13
0
        private static void Execute(object sender, ExecutedRoutedEventArgs e)
        {
            var mainWindow = (MainWindow)sender;

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