Esempio n. 1
0
        private void btnInvoiceList_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmInvoiceList obj = new frmInvoiceList();

            obj.ShowInTaskbar        = false;
            obj.WindowState          = FormWindowState.Maximized;
            obj.IconOptions.ShowIcon = false;
            obj.MdiParent            = this;
            obj.Show();
        }
Esempio n. 2
0
 private void OpenInvoiceList(string programID, string programName)
 {
     if (!(Application.OpenForms.OfType <frmInvoiceList>().Count() == 1))
     {
         frmInvoiceList form = new frmInvoiceList(programID, programName);
         form.Show();
     }
     else
     {
         MetroMessageBox.Show(this, "\n" + Messages.DepositConfirmationMenu.ProcessAlreadyRunning, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         //need change after message list
     }
 }