Пример #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);
        }