예제 #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);
            }
        }
예제 #3
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AppSettingsForm appSettingForm = new AppSettingsForm();

            if (appSettingForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                httpServerController._httpServer.PortNumber = AppSettings.Port;
            }
        }
예제 #4
0
 private void AskForData()
 {
     if (MessageBox.Show("База данных не содержит в себе значения или не существует. Открыть настройки?", "База пустая",
                         MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
             #if DEBUG
         AppSettingsForm settingsForm = new AppSettingsForm();
         settingsForm.ShowDialog();
         GetDataFromDb();
             #else
         Process settingsProcess = new Process();
         settingsProcess.StartInfo.FileName  = Environment.CurrentDirectory + "\\Settings.exe";
         settingsProcess.EnableRaisingEvents = true;
         settingsProcess.Exited += (s, e) => { GetDataFromDb(); };
         settingsProcess.Start();
             #endif
     }
     else
     {
         Application.Exit();
     }
 }
예제 #5
0
        private void hsGlobalApplicationSettings_Click(object sender, EventArgs e)
        {
            var af = new AppSettingsForm(FbXpertMainForm.Instance());

            af.Show();
        }