Exemple #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            var        invoice    = _invoiceService.GetById((long)dtgInvoices.SelectedRows[0].Cells[6].Value);
            AddInvoice addInvoice = new AddInvoice(_invoiceService, _productService, _providerService, invoice);

            addInvoice.ShowDialog();
        }
Exemple #2
0
        private void btnAddNew_Click(object sender, EventArgs e)
        {
            AddInvoice addInvoice = new AddInvoice(_invoiceService, _productService, _providerService);

            addInvoice.ShowDialog();
            UpdateList();
        }