Example #1
0
 private void accountsTypesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (FrmAccTypes.IsDisposed)
     {
         FrmAccTypes           = new AccTypesFrm();
         FrmAccTypes.MdiParent = this;
         FrmAccTypes.Show();
     }
     else
     {
         if (FrmAccTypes.Visible)
         {
             FrmAccTypes.WindowState = FormWindowState.Normal;
             FrmAccTypes.Focus();
         }
         else
         {
             FrmAccTypes.MdiParent = this;
             FrmAccTypes.Show();
         }
     }
     FrmAccTypes.Icon = FXFW.SqlDB.MakeIcon(global::SchoolStore2.Properties.Resources.accountsTypes, 16, false);
 }