private void btnOrder_Click(object sender, EventArgs e) { frmOrders fo = new frmOrders(); fo.InvoiceType = Invoice.InvoiceType.sell; fo.ShowDialog(this); }
private void btnPreInvoice_Click(object sender, EventArgs e) { frmOrders fo = new frmOrders(); fo.InvoiceType = Invoice.InvoiceType.proforma; fo.OrderMode = frmOrders.ModeList.New; fo.ShowDialog(this); }
private void tsmiProformaEdit_Click(object sender, EventArgs e) { frmOrders fo = new frmOrders(); Int16 InvoiceNo = Convert.ToInt16(dgvPish.CurrentRow.Cells[0].Value); fo.InvoiceType = Invoice.InvoiceType.proforma; Invoice.Current.Number = InvoiceNo; fo.OrderMode = frmOrders.ModeList.JustEdit; fo.ShowDialog(this); }
private void dgvAllInvoiceList_DoubleClick(object sender, EventArgs e) { frmOrders fo = new frmOrders(); Int16 InvoiceNo = Convert.ToInt16(dgvAllInvoiceList.CurrentRow.Cells[0].Value); Invoice.Current.Number = InvoiceNo; fo.InvoiceType = Invoice.InvoiceType.sell; fo.InvoiceNo = InvoiceNo; fo.OrderMode = frmOrders.ModeList.JustEdit; fo.ShowDialog(this); }