コード例 #1
0
        private void formatScheduleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <string>   lines  = new List <string>(this.mTextBox.Lines);
            SchedulerHelper helper = new SchedulerHelper(mTool);

            helper.ReLayoutScheduleWeeks(lines);
            mTextBox.Lines = lines.ToArray();
        }
コード例 #2
0
 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");
     }
 }
コード例 #3
0
        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());
        }
コード例 #4
0
ファイル: GamesaveTool.cs プロジェクト: BAD-AL/NFL2K5Tool
 /// <summary>
 /// Gets the schedule
 /// </summary>
 public string GetSchedule()
 {
     SchedulerHelper helper = new SchedulerHelper(this);
     helper.FranchiseScheduleMode = true;
     return helper.GetSchedule();
 }
コード例 #5
0
ファイル: GamesaveTool.cs プロジェクト: BAD-AL/NFL2K5Tool
 /// <summary>
 /// uses the Schedule helper class to apply the schedule.
 /// </summary>
 /// <param name="scheduleList">list of games to apply.</param>
 public void ApplySchedule(List<string> scheduleList)
 {
     SchedulerHelper helper = new SchedulerHelper(this);
     helper.FranchiseScheduleMode = true;
     helper.ApplySchedule(scheduleList);
 }
コード例 #6
0
ファイル: MainForm.cs プロジェクト: BAD-AL/NFL2K5Tool
 private void scheduleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SchedulerHelper helper = new SchedulerHelper(mTool);
     mTextBox.AppendText("\n\n#Schedule\n");
     mTextBox.AppendText(helper.GetSchedule());
 }
コード例 #7
0
ファイル: MainForm.cs プロジェクト: BAD-AL/NFL2K5Tool
        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());
        }
コード例 #8
0
ファイル: MainForm.cs プロジェクト: BAD-AL/NFL2K5Tool
 private void formatScheduleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     List<string> lines = new List<string>(this.mTextBox.Lines);
     SchedulerHelper helper = new SchedulerHelper(mTool);
     helper.ReLayoutScheduleWeeks(lines);
     mTextBox.Lines = lines.ToArray();
 }