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; } }
private void NewServer() { if (SelectedTypeHandler == null) { return; } var args = new SelectedTypeArgs() { InstanceType = InstanceType.Remote }; SelectedTypeHandler(this, args); }