private void executeOpenChildBankWin(object parameter)
{
IsNew = true;
ChildBankWin = new AddOrEditBank(this);
ChildBankWin.ShowDialog();
}
private void OkSaveChildWindowImplementation(object parameter)
{
if(IsNew)
{
Banks.Add(CurrentBank);
DbContext.Banks.Add(CurrentBank);
}
DbContext.SaveChanges();
ChildBankWin.Close();
}
_dataContext.Banks.Add(new Bank());
_dataContext.Banks.Remove(bank));