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