コード例 #1
0
 /// <summary>
 /// Get strings for actual values from language read by connection
 /// The text for unit is automatically alternative unit, if factor is set
 /// <param name="NoAltUnit">True to use original unit, false for alternative unit (if available)</param>
 /// </summary>
 public void RefreshLanguage(bool NoAltUnit)
 {
     mProtocol.SetValueAltUnitFlag(NoAltUnit);
     for (byte i = 0; i < mValueNumber; i++)
     {
         Item[i]         = new ActualValueItem();
         Item[i].Name    = mProtocol.GetValueName(i);
         Item[i].Unit    = mProtocol.GetValueUnit(i);
         Item[i].Hidden  = mProtocol.GetValueHiddenFlag(i);
         Item[i].Display = mProtocol.GetValueDisplayFlag(i);
     }
 }