private void NewProjectClick(object sender, RoutedEventArgs e) { var loaded = StudioContext.LoadNew(MainWindow.Current?.ViewModel); if (loaded) { Close(); } }