private void NewAccount_Click(object sender, RoutedEventArgs e) { var window = new NewAccountWindow(); var newAccount = new NewAccountModel(); window.DataContext = ForView.Wrap(newAccount); window.Closed += NewAccountWindow_Closed; window.Show(); }
public void NewAccount(NewAccountModel newAccount) { _navigationModel.SelectedAccount = _share.Company.NewAccount( newAccount.Name, (int)newAccount.Type); }