コード例 #1
0
 private void SelectType(SelectTypeViewModel m, SelectedTypeArgs e)
 {
     if (e.InstanceType == InstanceType.Remote)
     {
     }
     else
     {
         CurrentPage = new NewLocalPage();
         var viewmodel = (NewLocalViewModel)_currentPage.DataContext;
         viewmodel.CloseHandler   += Close;
         viewmodel.CreatedHandler += CreateNewInstance;
     }
 }
コード例 #2
0
 public SelectTypePage()
 {
     Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedDictionary);
     InitializeComponent();
     DataContext = new SelectTypeViewModel();
 }
コード例 #3
0
 public SelectTypeDialog(SelectTypeViewModel viewModel)
 {
     this.ViewModel      = viewModel;
     viewModel.Finished += this.ViewModel_Finished;
     this.InitializeComponent();
 }