예제 #1
0
        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();
            }
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
        private void btnMainMnuInvoices_Click(object sender, EventArgs e)
        {
            InvoiceListForm invoiceListForm = new InvoiceListForm();

            invoiceListForm.Show();
        }
예제 #4
0
        public override void Run()
        {
            var form = new InvoiceListForm();

            WorkbenchSingleton.AddChild(form);
        }