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); } }
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); } }
private void 数据库ToolStripMenuItem_Click(object sender, EventArgs e) { if (pnl_main.Controls.Count > 0) { foreach (System.Windows.Forms.Form control in pnl_main.Controls) { control.Close(); } } DatabaseConfigForm frm = new DatabaseConfigForm(); frm.FormClosed += frm_FormClosed; frm.TopLevel = false; frm.Dock = DockStyle.Fill; pnl_main.Controls.Add(frm); frm.Show(); }