private static void BackupProfiles() { BackupWindowViewModel vm = new BackupWindowViewModel(BackupOptions); BackupWindow backupWindow = new BackupWindow { DataContext = vm }; vm.CloseWindow = () => backupWindow.Close(); backupWindow.ShowDialog(); }
private void Button_Click_2(object sender, RoutedEventArgs e) { BackupWindow bw = new BackupWindow(); bw.Show(); }