private void 数据库设置ToolStripMenuItem_Click(object sender, EventArgs e) { Frm_config f = new Frm_config(); string tabPageText = f.Text; EmbedForm embedForm = new EmbedForm(); embedForm.openForm(f, tabPageText, tabControl1, panel1); }
private void initialize() { if (ConfigurationManager.ConnectionStrings["myConcetion"] == null) { Frm_config frm_Config = new Frm_config(); string tabPageText = frm_Config.Text; Utility.UI.EmbedForm embed = new Utility.UI.EmbedForm(); embed.openForm(frm_Config, tabPageText, tabControl1, panel1); } }