public bool SaveFileAs() => EditorLoadSave.SaveFileAs(this);
public bool LoadFile(string file, bool updateCursorPosition = true) => EditorLoadSave.LoadFile(this, file, updateCursorPosition);
public bool SaveFileAs() => IfNotReadOnly(() => EditorLoadSave.SaveFileAs(this));
public bool SaveIfModified() => EditorLoadSave.SaveIfModified(this);
public void InsertFile(string file) => IfNotReadOnly(() => EditorLoadSave.InsertFile(this, file));
public bool SaveIfModified() => IfNotReadOnly(() => EditorLoadSave.SaveIfModified(this));
public void NewFile() => IfNotReadOnly(() => EditorLoadSave.NewFile(this));
public void OpenFile(string file) => IfNotReadOnly(() => EditorLoadSave.OpenFile(this, file));
private static void Execute(object sender, ExecutedRoutedEventArgs e) { var mainWindow = (MainWindow)sender; EditorLoadSave.InsertFile(mainWindow.Editor, null); }
private void ExecuteSaveAsHtmlTemplate(object sender, ExecutedRoutedEventArgs e) => EditorLoadSave.SaveFileAs(Editor, "html-with-template");
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"); }
private static void Execute(object sender, ExecutedRoutedEventArgs e) { var mainWindow = (MainWindow)sender; EditorLoadSave.OpenFile(mainWindow.Editor, e.Parameter as string); }