private void invoicesToolStripMenuItem_Click(object sender, EventArgs e) { Cursor = System.Windows.Forms.Cursors.WaitCursor; if (checkOpenForm("Invoices")) { Documents.Invoices frmInvoices = new Solsage_Process_Management_System.Documents.Invoices(); frmInvoices.MdiParent = this; frmInvoices.Show(); } Cursor = System.Windows.Forms.Cursors.Default; }
private void dgProcessStatus_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 1) // Sales Order { string sSalesOrderNumber = dgProcessStatus.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); if(sSalesOrderNumber != "") { Solsage_Process_Management_System.Documents.SalesOrder frmSales = new Solsage_Process_Management_System.Documents.SalesOrder(); frmSales.bPermanentMonthEnd = false; frmSales.ShowDialog(sSalesOrderNumber, Convert.ToDateTime(dtInvoiceDate.Text)); } } else if (e.ColumnIndex == 2) // Invoice { string sInvoiceNumber = dgProcessStatus.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); if (sInvoiceNumber != "") { Solsage_Process_Management_System.Documents.Invoices frmInvoice = new Solsage_Process_Management_System.Documents.Invoices(); frmInvoice.ShowDialog(sInvoiceNumber); } } }