public void NewFile() => IfNotReadOnly(() => EditorLoadSave.NewFile(this));
private static void Execute(object sender, ExecutedRoutedEventArgs e) { var mainWindow = (MainWindow)sender; EditorLoadSave.NewFile(mainWindow.Editor); }