Пример #1
0
 private void contextMenuStrip2_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
 {
     if (e.ClickedItem == tsmiDesignEarth)
     {
         var pc = new ProgressClockForm(this)
         {
             X = 50,
             Y = 200
         };
         pc.Show();
     }
     else if (e.ClickedItem == tsmiDesign)
     {
         AppDesign = ReloadDesign(eColorDesigns.Gray);
     }
     else if (e.ClickedItem == tsmiAppSettings)
     {
         var af = new AppSettingsForm(this);
         af.Show();
     }
     else if (e.ClickedItem == tsmiDatabaseDesign)
     {
         DatabaseDesignForm.Instance().SetParent(MdiParent);
         DatabaseDesignForm.Instance().Show();
     }
     else if (e.ClickedItem == tsmiCreateUUID)
     {
         var uuid = new UUIDForm(MdiParent);
         uuid.Show();
     }
     else if (e.ClickedItem == tsmiScripting)
     {
         var dbReg = new DBRegistrationClass();
         var dbm   = new ScriptingForm(dbReg);
         dbm.Show();
     }
     else if (e.ClickedItem == tsmiDatabasRegistration)
     {
         var cfg = new DatabaseConfigForm(Instance(), ActRegistrationObject)
         {
             Cloned = false
         };
         cfg.SetBearbeitenMode(EditStateClass.eBearbeiten.eEdit);
         cfg.Show();
     }
     else if (e.ClickedItem == tsmiGerman)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.German);
     }
     else if (e.ClickedItem == tsmiEnglish)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.English);
     }
     else if (e.ClickedItem == tsmiJapanese)
     {
         LanguageClass.Instance().ChangeLanguage(LanguageClass.Japanese);
     }
 }
Пример #2
0
        private void contextMenuStrip2_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            if (e.ClickedItem == tsmiDesignEarth)
            {
                AppDesign = ReloadDesign(eColorDesigns.Earth);

                /*
                 * var pc = new ProgressClockForm(this)
                 * {
                 *  X = 50,
                 *  Y = 200
                 * };
                 * pc.Show();
                 */
            }
            else if (e.ClickedItem == tsmiDesignGray)
            {
                AppDesign = ReloadDesign(eColorDesigns.Gray);
            }
            else if (e.ClickedItem == tsmiAppSettings)
            {
                var af = new AppSettingsForm(this);
                af.Show();
            }
            else if (e.ClickedItem == tsmiDatabaseDesign)
            {
                DatabaseDesignForm.Instance.SetParent(MdiParent);
                DatabaseDesignForm.Instance.Show();
            }
            else if (e.ClickedItem == tsmiCreateUUID)
            {
                var uuid = new UUIDForm(MdiParent);
                uuid.Show();
            }
            else if (e.ClickedItem == tsmiScripting)
            {
                var dbReg = new DBRegistrationClass();
                var dbm   = new ScriptingForm(dbReg);
                dbm.Show();
            }
            else if (e.ClickedItem == tsmiDatabasRegistration)
            {
                var cfg = new DatabaseConfigForm(Instance(), ActRegistrationObject, DbExplorerForm.Instance().GetTree(), DbExplorerForm.Instance().GetTree().Nodes.Count, EditStateClass.eBearbeiten.eEdit);
                cfg.Show();
            }
            else if (e.ClickedItem == tsmiGerman)
            {
                LanguageClass.Instance.ChangeLanguage(LanguageConsts.Deutsch);
            }
            else if (e.ClickedItem == tsmiEnglish)
            {
                LanguageClass.Instance.ChangeLanguage(LanguageConsts.Englisch);
            }
            else if (e.ClickedItem == tsmiJapanese)
            {
                LanguageClass.Instance.ChangeLanguage(LanguageConsts.Japanisch);
            }
        }