private void btadd_Click(object sender, RoutedEventArgs e) { AddPayment wnd = new AddPayment(); wnd.ShowDialog(); UpdateWND(); }
private void btupd_Click(object sender, RoutedEventArgs e) { PaymentDto item = dataGridPayment.SelectedItem as PaymentDto; if (item == null) { MessageBox.Show("Ничего не было выбрано для изменения ╮( ̄ω ̄)╭ ", "Какой коwмар!"); return; } AddPayment wnd = new AddPayment(item); wnd.ShowDialog(); UpdateWND(); }