Ejemplo n.º 1
0
        private void btnDelInvoice_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Удалить накладную?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes)
            {
                int idInvoice = Convert.ToInt32(_dgvInvoice.Rows[_dgvInvoice.SelectedCells[0].RowIndex].Cells[0].Value);
                invoiceList.Delete(idInvoice);

                driverCarList.ReLoad();

                loadInvoice();
            }
        }