コード例 #1
0
        private void OpenBackupManager(object sender, RoutedEventArgs e)
        {
            BackupManagerViewModel model   = new BackupManagerViewModel();
            BackupManager          manager = new BackupManager
            {
                DataContext = model,
                Owner       = this
            };

            model.Window = manager;
            manager.ShowDialog();
        }
コード例 #2
0
ファイル: BackupManager.xaml.cs プロジェクト: pirica/FModel
 public BackupManager(string gameName)
 {
     DataContext = _viewModel = new BackupManagerViewModel(gameName);
     InitializeComponent();
 }