private void toolsStripMenuItem_Click(object sender, EventArgs e) { //contentFrmCurrent = new WebBrowserFrm(); //contentFrmCurrent = new BrowserForm(); contentFrmCurrent = new FormTools(); DialogUtil.ShowTabContent(this.splitContainer1.Panel2, contentFrmCurrent, null); }
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { try { string currentTabName = this.tabControl1.SelectedTab.Name; Form formTab = null; //数据库配置 if (currentTabName == "tabPageDbConfig") { formTab = new FormDbConfig(codeProjectInfo); DialogUtil.ShowTabContent(this.tabPageDbConfig, formTab, null); } //模板配置列表 else if (currentTabName == "tabPageTemplate") { formTab = new FormTemList(codeProjectInfo); DialogUtil.ShowTabContent(this.tabPageTemplate, formTab, null); } //其他配置和代码生成 else if (currentTabName == "tabPageCreate") { formTab = new FormCreate(codeProjectInfo); DialogUtil.ShowTabContent(this.tabPageCreate, formTab, null); } } catch (Exception ex) { MessageHelper.ShowError(ex); } }
private void Frame_Resize(object sender, EventArgs e) { if (contentFrmCurrent != null) { DialogUtil.ShowTabContent(this.splitContainer1.Panel2, contentFrmCurrent, null, true); //DialogUtil.ShowTabContent(contentFrmCurrent) //ToShowRightFrm(contentFrmCurrent); } }
private void AutoCodeConfigForm_Load(object sender, EventArgs e) { try { SetHeadInfo(); DialogUtil.ShowTabContent(this.tabPageDbConfig, new FormDbConfig(codeProjectInfo), null); } catch (Exception ex) { MessageHelper.ShowError(ex); } }
private void Frame_Load(object sender, EventArgs e) { this.ShowIcon = false; //this.MaximizeBox = false;//使最大化窗口失效 xvalues = this.Width;//记录窗体初始大小 yvalues = this.Height; SysUserInfo sysUser = (SysUserInfo)CacheHelper.GetCache("user"); this.toolStripStatusSupplier.Text = "当前登录用户:" + sysUser.UserName; this.toolStripStatusCopyRight.Text = "版权所有:" + ConfigurationManager.AppSettings["copyright"].ToString(); this.toolStripStatusVersion.Text = "版本号:" + ConfigurationManager.AppSettings["version"].ToString(); this.Enabled = true; this.codeToolStripMenuItem.BackColor = Color.LightBlue; contentFrmCurrent = new CodeProjectList(); this.Text = "代码生成器"; DialogUtil.ShowTabContent(this.splitContainer1.Panel2, contentFrmCurrent, null); }
private void zxtbStripMenuItem_Click(object sender, EventArgs e) { contentFrmCurrent = new FormDemoList(); DialogUtil.ShowTabContent(this.splitContainer1.Panel2, contentFrmCurrent, null); }
private void personCenterToolStripMenuItem_Click(object sender, EventArgs e) { //SetItemBgColor(sender); contentFrmCurrent = new CodeProjectList(); DialogUtil.ShowTabContent(this.splitContainer1.Panel2, contentFrmCurrent, null); }