public void SetSubsystemSeverity(int subSystemNum, RanmaRepairSeverity ranmaRepairSeverity, byte[] repairTable) { this[subSystemNum].Severity = ranmaRepairSeverity; _gateModel.WritePlate(0, subSystemNum, repairTable); }
private void SetSubsytemSeverityToAll(int subSystemNum, RanmaRepairSeverity ranmaRepairSeverity) { var repairTable = RanmaSubsystemStatusFactory.GenerateRanmaSubsystemStatus(ranmaRepairSeverity).Bytes; foreach (var ranmaPlate in _ranmaPlates) { ranmaPlate.SetSubsystemSeverity(subSystemNum, ranmaRepairSeverity, repairTable); } }
private Color GetSeverityColor(RanmaRepairSeverity severity) { switch (severity) { case RanmaRepairSeverity.NotDamaged: return Colors.GreenYellow; case RanmaRepairSeverity.Easy: return Colors.Yellow; case RanmaRepairSeverity.Medium: return Colors.HotPink; case RanmaRepairSeverity.Hard: return Colors.OrangeRed; default: throw new ArgumentException("severity"); } }
public static RanmaSubsystemTable GenerateRanmaSubsystemStatus(RanmaRepairSeverity severity) { switch (severity) { case RanmaRepairSeverity.Easy: return new RanmaSubsystemTable(EasyTables.Random()); case RanmaRepairSeverity.Medium: return new RanmaSubsystemTable(MediumTables.Random()); case RanmaRepairSeverity.Hard: return new RanmaSubsystemTable(HardTables.Random()); case RanmaRepairSeverity.Ready: return new RanmaSubsystemTable(0); default: throw new ArgumentException("Неизвестное значение RanmaRepairSeverity", "severity"); } }
public static RanmaSubsystemTable GenerateRanmaSubsystemStatus(RanmaRepairSeverity severity) { switch (severity) { case RanmaRepairSeverity.Easy: return(new RanmaSubsystemTable(EasyTables.Random())); case RanmaRepairSeverity.Medium: return(new RanmaSubsystemTable(MediumTables.Random())); case RanmaRepairSeverity.Hard: return(new RanmaSubsystemTable(HardTables.Random())); case RanmaRepairSeverity.Ready: return(new RanmaSubsystemTable(0)); default: throw new ArgumentException("Неизвестное значение RanmaRepairSeverity", "severity"); } }
private Color GetSeverityColor(RanmaRepairSeverity severity) { switch (severity) { case RanmaRepairSeverity.NotDamaged: return(Colors.GreenYellow); case RanmaRepairSeverity.Easy: return(Colors.Yellow); case RanmaRepairSeverity.Medium: return(Colors.HotPink); case RanmaRepairSeverity.Hard: return(Colors.OrangeRed); default: throw new ArgumentException("severity"); } }
public static RanmaSubsystemTable GenerateRanmaSubsystemStatus(RanmaRepairSeverity severity) { return(new RanmaSubsystemTable(Table[severity].Random())); }
public void SetSubsystemSeverity(int subSystemNum, RanmaRepairSeverity ranmaRepairSeverity, byte[] repairTable) { this[subSystemNum].Severity = ranmaRepairSeverity; _gateModel.WritePlate(0, subSystemNum, repairTable); }
private void SetSubsytemSeverityToAll(int subSystemNum, RanmaRepairSeverity ranmaRepairSeverity) { var repairTable = RanmaSubsystemStatusFactory.GenerateRanmaSubsystemStatus(ranmaRepairSeverity).Bytes; foreach (var ranmaPlate in _ranmaPlates) { ranmaPlate.SetSubsystemSeverity(subSystemNum, ranmaRepairSeverity, repairTable); } }
public static RanmaSubsystemTable GenerateRanmaSubsystemStatus(RanmaRepairSeverity severity) { return new RanmaSubsystemTable(Table[severity].Random()); }