private void toolBar_main_ButtonClick(object sender, ToolBarButtonClickEventArgs e) { if (e.Button.Name.Equals("toolBarButton1")) { //todo 实例化会员管理窗口 CustomManagerFrm customManageFrm = new CustomManagerFrm(); Control_Add(customManageFrm); } else if (e.Button.Name.Equals("toolBarButton2")) { //实例化配置管理窗口 ConfigureFrm configureFrm = new ConfigureFrm(); Control_Add(configureFrm); } else if (e.Button.Name.Equals("toolBarButton3")) { ////todo 实例化常见问题窗口 //NormalQuestionFrm normalQuestion = new NormalQuestionFrm(); //Control_Add(normalQuestion); MessageBox.Show("功能开发中!", "tips"); } }
private void Form1_Load(object sender, EventArgs e) { CustomManagerFrm customManageFrm = new CustomManagerFrm(); Control_Add(customManageFrm); }