Exemplo n.º 1
0
        void BtnEditRow_Click(object sender, RoutedEventArgs e)
        {
            PaymentStatus paymentStatus = dgvPaymentStatus.SelectedItem as PaymentStatus;

            if (paymentStatus == null)
            {
                return;
            }
            PaymentStatusSaveWindow window = new PaymentStatusSaveWindow(paymentStatus);

            window.ShowDialog();
        }
Exemplo n.º 2
0
        //Дабл клик по строке таблицы - открывает окно редактирования
        private void RowDoubleClick(object sender, MouseButtonEventArgs e)
        {
            DataGridRow row = sender as DataGridRow;

            PaymentStatus paymentStatus = row.Item as PaymentStatus;

            if (paymentStatus == null)
            {
                return;
            }

            PaymentStatusSaveWindow window = new PaymentStatusSaveWindow(paymentStatus);

            window.ShowDialog();


            viewSource.View.Refresh();
            dgvPaymentStatus.CurrentCell = new DataGridCellInfo(row.Item, dgvPaymentStatus.CurrentCell.Column);
        }
Exemplo n.º 3
0
        void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            PaymentStatusSaveWindow window = new PaymentStatusSaveWindow();

            window.ShowDialog();
        }