public DataBarFormatting(ILittleEndianInput in1) { in1.ReadShort(); // Ignored in1.ReadByte(); // Reserved options = (byte)in1.ReadByte(); percentMin = (byte)in1.ReadByte(); percentMax = (byte)in1.ReadByte(); if (percentMin < 0 || percentMin > 100) { //log.Log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin); Console.WriteLine("Inconsistent Minimum Percentage found " + percentMin); } if (percentMax < 0 || percentMax > 100) { //log.Log(POILogger.WARN, "Inconsistent Minimum Percentage found " + percentMin); Console.WriteLine("Inconsistent Minimum Percentage found " + percentMin); } color = new ExtendedColor(in1); thresholdMin = new DataBarThreshold(in1); thresholdMax = new DataBarThreshold(in1); }
public object Clone() { DataBarThreshold rec = new DataBarThreshold(); base.CopyTo(rec); return rec; }