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; } }
public SelectTypePage() { Resources.MergedDictionaries.Add(SharedDictionaryManager.SharedDictionary); InitializeComponent(); DataContext = new SelectTypeViewModel(); }
public SelectTypeDialog(SelectTypeViewModel viewModel) { this.ViewModel = viewModel; viewModel.Finished += this.ViewModel_Finished; this.InitializeComponent(); }