private void ShowInvoicesList(object sender, EventArgs e) { Form form = FormActivation(typeof(InvoiceListForm)); if (form == null) { InvoiceListForm f = new InvoiceListForm(); f.MdiParent = this; f.Show(); } else { form.Activate(); } }
private void InvoiceList_Click(object sender, EventArgs e) { try { if (invoiceListForm == null || invoiceListForm.IsDisposed) { invoiceListForm = new InvoiceListForm(); invoiceListForm.Show(); invoiceListForm.MdiParent = this; } else { invoiceListForm.Activate(); } } catch (Exception ex) { MessageBox.Show(ex.Message, Comman.Product_Name, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnMainMnuInvoices_Click(object sender, EventArgs e) { InvoiceListForm invoiceListForm = new InvoiceListForm(); invoiceListForm.Show(); }
public override void Run() { var form = new InvoiceListForm(); WorkbenchSingleton.AddChild(form); }