//点击菜单,显示功能区子窗体 private void FuncToolStripMenuItem_Click(object sender, EventArgs e) { FuncItemsForm fItemsWnd = FuncItemsForm.GetInstance(); ToolStripMenuItem item = (ToolStripMenuItem)sender; item.Checked = !item.Checked; if (item.Checked) { fItemsWnd.Show(dockPanel1, DockState.DockLeft); } else { fItemsWnd.Hide(); } }
private void MainForm_Load(object sender, EventArgs e) { //显示FuncItem FuncItemsForm fItemsWnd = FuncItemsForm.GetInstance(); fItemsWnd.Show(dockPanel1, DockState.DockLeft); //显示Property PropertyForm propertyWnd = PropertyForm.GetInstance(); propertyWnd.Show(dockPanel1, DockState.DockRight); //显示OutPutForm OutPutForm outPutForm = OutPutForm.GetInstacne(); outPutForm.Show(dockPanel1, DockState.DockBottom); }