private static void BackupProfiles()
        {
            BackupWindowViewModel vm           = new BackupWindowViewModel(BackupOptions);
            BackupWindow          backupWindow = new BackupWindow {
                DataContext = vm
            };

            vm.CloseWindow = () => backupWindow.Close();
            backupWindow.ShowDialog();
        }
Esempio n. 2
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            BackupWindow bw = new BackupWindow();

            bw.Show();
        }