Esempio n. 1
0
 private void openCompaniesListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.Companies != null)
     {
         var form = new CompaniesListForm(this.Companies);
         form.Show();
     }
     else
     {
         MessageBox.Show("No companies were added yet.", "Empty List", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
 private void tlsCompaniesList_Click(object sender, EventArgs e)
 {
     if (frmCompaniesListForm == null)
     {
         frmCompaniesListForm             = new CompaniesListForm();
         frmCompaniesListForm.MdiParent   = this;
         frmCompaniesListForm.FormClosed += new FormClosedEventHandler(frmCompaniesListForm_FormClosed);
         frmCompaniesListForm.Show();
     }
     else
     {
         frmCompaniesListForm.Activate();
     }
 }