internal ResultValue(string value, IVisio.VisUnitCodes unit_code) { this.UnitCode = unit_code; this.ValueNumeric = 0.0; this.ValueString = value; this.ResultType = ResultType.ResultString; }
internal ResultValue(double value, IVisio.VisUnitCodes unit_code) { this.UnitCode = unit_code; this.ValueNumeric = value; this.ValueString = null; this.ResultType = ResultType.ResultNumeric; }
internal UpdateRecord(StreamType st, SIDSRC sidsrc, string result, IVisio.VisUnitCodes unit_code) { this.SIDSRC = sidsrc; this.Formula = null; this.UnitCode = unit_code; this.ResultNumeric = 0.0; this.ResultString = result; this.UpdateType = UpdateType.ResultString; this.StreamType = st; }
internal UpdateRecord(StreamType st, SIDSRC sidsrc, string formula) { this.SIDSRC = sidsrc; this.Formula = formula; this.ResultNumeric = 0.0; this.ResultString = null; this.UnitCode = IVisio.VisUnitCodes.visNumber; this.UpdateType = UpdateType.Formula; this.StreamType = st; }
public void SetResult(SRC streamitem, double value, IVisio.VisUnitCodes unitcode) { this._SetResult(StreamType.SRC, new SIDSRC(-1, streamitem), value, unitcode); }
public void SetResult(SIDSRC streamitem, string value, IVisio.VisUnitCodes unitcode) { this._SetResult(StreamType.SIDSRC, streamitem, value, unitcode); }
public void SetResult(short shapeid, SRC src, string value, IVisio.VisUnitCodes unitcode) { var streamitem = new SIDSRC(shapeid, src); this._SetResult(StreamType.SIDSRC, streamitem, value, unitcode); }
protected void _SetResult(StreamType st, SIDSRC streamitem, string value, IVisio.VisUnitCodes unitcode) { var rec = new UpdateRecord(st, streamitem, value, unitcode); this._add_update(rec); }
public void SetResult(SIDSRC sidsrc, string value, IVisio.VisUnitCodes unitcode) { var v = new ResultValue(value, unitcode); this.SetResult(sidsrc, v); }
public void SetResult(SRC src, double value, IVisio.VisUnitCodes unitcode) { this.StreamItems.Add(src); this.ValueItems.Add(new ResultValue(value, unitcode)); }