//按下Tool Button 之後會顯示的版面狀態 private void btnTool_Click(object sender, EventArgs e) { panelMain.Controls.Clear(); uc_tool = new UC_ToolManagement(); uc_tool.Location = new Point(0, 0); uc_tool.Name = "UC_ToolManagement"; uc_tool.MaximumSize = new System.Drawing.Size(0, 0); uc_tool.MinimumSize = new System.Drawing.Size(0, 0); uc_tool.Dock = DockStyle.Fill; panelMain.Controls.Add(uc_tool); }
public frmToolAdd(DataTable dt, UC_ToolManagement temp) { InitializeComponent(); dtXmlInfo = dt; returnToolMan = temp; }