Example #1
0
        private void btadd_Click(object sender, RoutedEventArgs e)
        {
            AddPayment wnd = new AddPayment();

            wnd.ShowDialog();
            UpdateWND();
        }
Example #2
0
        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();
        }