/// <summary> /// Returns a user readable string representing the range of Data1 values /// </summary> public string GetData1RangeStr(IFactory_MssMsgInfo msgInfoFactory) { IMssMsgInfo msgInfo = msgInfoFactory.Create(this.MsgType); return(GetRangeString(msgInfo.ConvertData1ToString(this.Data1RangeBottom), msgInfo.ConvertData1ToString(this.Data1RangeTop), msgInfo.ConvertData1ToString(msgInfo.MinData1Value), msgInfo.ConvertData1ToString(msgInfo.MaxData1Value))); }
public override bool SetData1RangeFromField(out string errorMsg) { string userInput = this.EntryField1.Text; int rangeBottom; int rangeTop; IMssMsgInfo msgInfo = this.mappingDlg.MsgInfoFactory.Create(this.MsgType); bool userInputIsValid = GetRangeFromUserInput(userInput, (int)msgInfo.MinData1Value, (int)msgInfo.MaxData1Value, out rangeBottom, out rangeTop, out errorMsg); this.msgRange.Data1RangeBottom = rangeBottom; this.msgRange.Data1RangeTop = rangeTop; return(userInputIsValid); }