Exemple #1
0
        protected override void EditBtn_Click(object sender, EventArgs e)
        {
            Invoice currentInvoice = (Invoice)dataGridView1.CurrentRow.DataBoundItem;

            if (currentInvoice == null)
            {
                return;
            }

            var frm = new FrmInvoice(currentInvoice);

            frm.Listener = this;
            frm.ShowDialog();
        }
Exemple #2
0
        private void createInvoiceMenuItem_Click(object sender, EventArgs e)
        {
            var frm = new FrmInvoice();

            frm.ShowDialog();
        }