private void btnDeno_Click(object sender, EventArgs e) { var cashAndCheckBreakDown = new CashAndCheckBreakDown(); var denomination = new CashAndCheckBreakdownWindow(cashAndCheckBreakDown); if (denomination.ShowDialog() == true) { _denomonation = cashAndCheckBreakDown; } }
private void btnDenomination_Click(object sender, RoutedEventArgs e) { var cashAndCheckBreakDown = new CashAndCheckBreakDown(); cashAndCheckBreakDown.Copy(_modelTellerCollector.CashAndCheckDenomimation); var denomination = new CashAndCheckBreakdownWindow(cashAndCheckBreakDown); denomination.IsReadOnly = !CanModify; if (denomination.ShowDialog() == true) { _modelTellerCollector.CashAndCheckDenomimation = cashAndCheckBreakDown; } }