private void scheduleToolStripMenuItem_Click(object sender, EventArgs e) { if (mTool.SaveType == SaveType.Franchise) { SchedulerHelper helper = new SchedulerHelper(mTool); mTextBox.AppendText("\n\n#Schedule\n"); mTextBox.AppendText(helper.GetSchedule()); } else { MessageBox.Show(this, "Load a franchise file to see schedule.", "A roster file currently loaded"); } }
private void ListContents() { mTextBox.Clear(); StringBuilder builder = new StringBuilder(5000); if (listTeamsToolStripMenuItem.Checked || listFreeAgentsToolStripMenuItem.Checked || listDraftClassToolStripMenuItem.Checked) { builder.Append(mTool.GetKey(listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked)); builder.Append("\n"); } if (listTeamsToolStripMenuItem.Checked) { builder.Append(mTool.GetLeaguePlayers(listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, listSpecialTeamsToolStripMenuItem.Checked)); } if (listFreeAgentsToolStripMenuItem.Checked) { builder.Append(mTool.GetTeamPlayers("FreeAgents", listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, false)); } if (listDraftClassToolStripMenuItem.Checked) { builder.Append(mTool.GetTeamPlayers("DraftClass", listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, false)); } if (listCoachesToolStripMenuItem1.Checked) { builder.Append(mTool.GetCoachData()); } if (listScheduleToolStripMenuItem.Checked) { if (mTool.SaveType == SaveType.Franchise) { SchedulerHelper helper = new SchedulerHelper(mTool); builder.Append("\n\n#Schedule\n"); builder.Append(helper.GetSchedule()); } else { Console.WriteLine("Cannot list schedule of {0} GameSave file", mTool.SaveType); } } SetText(builder.ToString()); }
/// <summary> /// Gets the schedule /// </summary> public string GetSchedule() { SchedulerHelper helper = new SchedulerHelper(this); helper.FranchiseScheduleMode = true; return helper.GetSchedule(); }
private void scheduleToolStripMenuItem_Click(object sender, EventArgs e) { SchedulerHelper helper = new SchedulerHelper(mTool); mTextBox.AppendText("\n\n#Schedule\n"); mTextBox.AppendText(helper.GetSchedule()); }
private void mListContentsButton_Click(object sender, EventArgs e) { mTextBox.Clear(); StringBuilder builder = new StringBuilder(5000); if (listTeamsToolStripMenuItem.Checked || listFreeAgentsToolStripMenuItem.Checked || listDraftClassToolStripMenuItem.Checked) { builder.Append(mTool.GetKey(listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked)); builder.Append("\n"); } if (listTeamsToolStripMenuItem.Checked) builder.Append(mTool.GetLeaguePlayers(listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, listSpecialTeamsToolStripMenuItem.Checked)); if (listFreeAgentsToolStripMenuItem.Checked) builder.Append(mTool.GetTeamPlayers("FreeAgents", listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, false)); if( listDraftClassToolStripMenuItem.Checked) builder.Append(mTool.GetTeamPlayers("DraftClass", listAttributesToolStripMenuItem.Checked, listApperanceToolStripMenuItem.Checked, false)); if (listCoachesToolStripMenuItem1.Checked) { builder.Append("\n\nCoachKEY="); // hmm... how to handle this properly..... if (fullCoachAttributesToolStripMenuItem.Checked) mTool.CoachKey = mTool.CoachKeyAll; builder.Append(mTool.CoachKey); builder.Append("\n"); for (int i = 0; i < 32; i++) { builder.Append(mTool.GetCoachData(i)); builder.Append("\r\n"); } } if (listScheduleToolStripMenuItem.Checked) { SchedulerHelper helper = new SchedulerHelper(mTool); builder.Append("\n\n#Schedule\n"); builder.Append(helper.GetSchedule()); } SetText(builder.ToString()); }