private void btnInvoices_Click(object sender, EventArgs e) { if (frmInvoice == null) { frmInvoice = new InvoiceForm(DM, this); } frmInvoice.ShowDialog(); }