private void FinishButton_Click(object sender, EventArgs e) { //如果计划为空,事件定义为空事件 for (int i = 0; i < 4; i++) { if (PlanList[i].CourseName == "空") { EventList[i] = new GameEventNull(); } } //生成计划 Plan newPlan = new Plan(); newPlan.PlanList = PlanList; newPlan.EventList = EventList; //执行计划,进入跳转界面 GameSystem.PerformGame(Gamest, newPlan); //RenderForm(Gamest); Interval interval = new Interval(Gamest, newPlan); this.Parent.Controls.Add(interval); interval.Show(); this.Parent.Controls.Remove(this); Close(); Dispose(); }
void DisableLabel(int i, string hint = "未安排\r\n(休息)") { Label label = PlanLabelList[i]; Button button = BtnList[i]; label.Text = hint; label.ForeColor = Color.Black; StatusList[i] = false; EventList[i] = new GameEventNull(); }