private void addDeposit_menuClick(object sender, RoutedEventArgs e) { var win = new Windows.AddEditDeposit(); win.customer = customer; win.ShowDialog(); }
private void editDeposit_menuItem(object sender, RoutedEventArgs e) { if (list_deposits.SelectedIndex < 0) { return; } var win = new Windows.AddEditDeposit(); win.customer = customer; win.deposit = (Deposit)list_deposits.SelectedItem; win._bank = win.deposit.Bank; win._date = win.deposit.Date; win._value = win.deposit.Value; win.ShowDialog(); }