Example #1
0
        private void localizedTextsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool alreadyexist = false;

            foreach (Form item in MdiChildren)
            {
                if (item is GUI.General.localestext.TEXTEditor)
                {
                    alreadyexist = true;
                    item.Show();
                    item.Activate();
                }
            }
            if (!alreadyexist)
            {
                GUI.General.localestext.TEXTEditor newForm = new EventAI_Creator.GUI.General.localestext.TEXTEditor();
                newForm.MdiParent = this;
                newForm.Show();
            }
        }
Example #2
0
 private void localizedTextsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     bool alreadyexist = false ;
     foreach (Form item in MdiChildren)
     {
         if (item is GUI.General.localestext.TEXTEditor)
         {
             alreadyexist = true;
             item.Show();
             item.Activate();
         }
     }
     if (!alreadyexist)
     {
         GUI.General.localestext.TEXTEditor newForm = new EventAI_Creator.GUI.General.localestext.TEXTEditor();
         newForm.MdiParent = this;
         newForm.Show();
     }
 }