private void FrmMain_Load(object sender, System.EventArgs e) { //disabled the maximize FormStyleUtil.RemoveMaximizeMenu(this); //加载配置 //创建并开启启动计划 var taskController = new TaskController(); taskController.BootTask(); //启动后开始执行 button2.PerformClick(); }