public static ExcelRange SetPenaltyName(this ExcelRange cell, PenaltiesWFTDAEnum penalty) { cell.SetCenterAlign().SetFontSize(8).SetValue(RDN.Utilities.Enums.EnumExt.ToFreindlyName(penalty)); return cell; }
public static string ToAbbreviation(PenaltiesWFTDAEnum penalty) { switch (penalty) { case PenaltiesWFTDAEnum.High_Block: return "A"; case PenaltiesWFTDAEnum.Blocking_With_Head: return "H"; case PenaltiesWFTDAEnum.Clockwise_To_Block: case PenaltiesWFTDAEnum.Direction_Of_Gameplay: return "C"; case PenaltiesWFTDAEnum.Failure_To_Reform: case PenaltiesWFTDAEnum.Destruction_Of_Pack: case PenaltiesWFTDAEnum.Out_Of_Play: return "P"; case PenaltiesWFTDAEnum.Skating_Out_Of_Bounds: return "S"; case PenaltiesWFTDAEnum.Insubordination: return "N"; case PenaltiesWFTDAEnum.Misconduct_Gross: return "G"; case PenaltiesWFTDAEnum.Back_Block: return "B"; case PenaltiesWFTDAEnum.Blocking_Out_Of_Bounds: case PenaltiesWFTDAEnum.Assisting_Out_Of_Bounds: return "O"; case PenaltiesWFTDAEnum.Cut_Track: return "X"; case PenaltiesWFTDAEnum.Elbows: return "E"; case PenaltiesWFTDAEnum.Forearms: return "F"; case PenaltiesWFTDAEnum.Delay_Of_Game: return "Z"; case PenaltiesWFTDAEnum.Violation: case PenaltiesWFTDAEnum.False_Start: case PenaltiesWFTDAEnum.Illegal_Procedure: return "I"; case PenaltiesWFTDAEnum.Low_Block: return "L"; case PenaltiesWFTDAEnum.Multi_Player_Block: return "M"; case PenaltiesWFTDAEnum.Unknown: return "U"; default: return ""; } }
public static ExcelRange SetPenaltyAbbrieviation(this ExcelRange cell, PenaltiesWFTDAEnum penalty) { cell.SetCenterAlign().SetFontBold().SetValue(PenaltyViewModel.ToAbbreviation(penalty)); return cell; }