private void formatScores(ref string data, ref MonospacedValues monoValues, EventFormat eventFormat, Scores scores) { if (eventFormat == EventFormat.Domination) data += scores.tps.ToString().PadRight(monoValues.tpsLength) + scores.diff.ToString().PadRight(monoValues.diffLength) + scores.vps.ToString().PadRight(monoValues.vpsLength); else if (eventFormat == EventFormat.Disparity) data += scores.diff.ToString().PadRight(monoValues.diffLength) + scores.vps.ToString().PadRight(monoValues.vpsLength) + scores.tps.ToString().PadRight(monoValues.tpsLength); else //if(tournament.Format == EventFormat.Victory) data += scores.vps.ToString().PadRight(monoValues.vpsLength) + scores.tps.ToString().PadRight(monoValues.tpsLength) + scores.diff.ToString().PadRight(monoValues.diffLength); }
private void formatScores(ref string data, ref Tags tag, EventFormat eventFormat, Scores scores) { if (eventFormat == EventFormat.Domination) data += tag.cellStart + scores.tps + tag.cellEnd + tag.cellStart + scores.diff + tag.cellEnd + tag.cellStart + scores.vps + tag.cellEnd; else if (eventFormat == EventFormat.Disparity) data += tag.cellStart + scores.diff + tag.cellEnd + tag.cellStart + scores.vps + tag.cellEnd + tag.cellStart + scores.tps + tag.cellEnd; else //if(tournament.Format == EventFormat.Victory) data += tag.cellStart + scores.vps + tag.cellEnd + tag.cellStart + scores.tps + tag.cellEnd + tag.cellStart + scores.diff + tag.cellEnd; }