public void UpdateCurrentRunWorldRecordCheckPointTimeDifference(int currentPhase, TrackerTime currentRunWorldRecordRunTimeDifference)
 {
     Rows[currentPhase].Cells[TIME_DIFFERENCE_COLUMN].Style = new DataGridViewCellStyle {
         ForeColor = currentRunWorldRecordRunTimeDifference.Color
     };
     Rows[currentPhase].Cells[TIME_DIFFERENCE_COLUMN].Value = currentRunWorldRecordRunTimeDifference.ToString();
 }
Пример #2
0
        public void UpdateCheckPointDataCells(CheckPointDataTable checkPointDataTable)
        {
            for (int i = 0; i < checkPointDataTable.PhaseCount - 1; i++)
            {
                if (checkPointDataTable.CheckPointTypes[i] == DataType.kDataTypeTime)
                {
                    TrackerTime checkPointData = (TrackerTime)checkPointDataTable.CheckPointDatas[i];

                    Rows[i].Cells[CHECKPOINT_NAME_COLUMN].Value = checkPointData.CheckPointName;
                    Rows[i].Cells[WORLD_RECORD_COLUMN].Value    = checkPointData.ToString();
                }
                else
                {
                    TrackerHP checkPointData = (TrackerHP)checkPointDataTable.CheckPointDatas[i];

                    Rows[i].Cells[CHECKPOINT_NAME_COLUMN].Value = checkPointData.CheckPointName;
                    Rows[i].Cells[WORLD_RECORD_COLUMN].Value    = checkPointData.ToString();
                }
            }

            Rows[checkPointDataTable.PhaseCount - 1].Cells[CHECKPOINT_NAME_COLUMN].Value = "Clear";
            Rows[checkPointDataTable.PhaseCount - 1].Cells[WORLD_RECORD_COLUMN].Value    = checkPointDataTable.WorldRecordClearTime.ToString();
        }