Пример #1
0
 internal ResultValue(string value,
                      IVisio.VisUnitCodes unit_code)
 {
     this.UnitCode     = unit_code;
     this.ValueNumeric = 0.0;
     this.ValueString  = value;
     this.ResultType   = ResultType.ResultString;
 }
Пример #2
0
 internal ResultValue(double value,
                      IVisio.VisUnitCodes unit_code)
 {
     this.UnitCode     = unit_code;
     this.ValueNumeric = value;
     this.ValueString  = null;
     this.ResultType   = ResultType.ResultNumeric;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
 public void SetResult(SRC streamitem, double value, IVisio.VisUnitCodes unitcode)
 {
     this._SetResult(StreamType.SRC, new SIDSRC(-1, streamitem), value, unitcode);
 }
Пример #6
0
 public void SetResult(SIDSRC streamitem, string value, IVisio.VisUnitCodes unitcode)
 {
     this._SetResult(StreamType.SIDSRC, streamitem, value, unitcode);
 }
Пример #7
0
        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);
        }
Пример #8
0
        protected void _SetResult(StreamType st, SIDSRC streamitem, string value, IVisio.VisUnitCodes unitcode)
        {
            var rec = new UpdateRecord(st, streamitem, value, unitcode);

            this._add_update(rec);
        }
Пример #9
0
        public void SetResult(SIDSRC sidsrc, string value, IVisio.VisUnitCodes unitcode)
        {
            var v = new ResultValue(value, unitcode);

            this.SetResult(sidsrc, v);
        }
Пример #10
0
 public void SetResult(SRC src, double value, IVisio.VisUnitCodes unitcode)
 {
     this.StreamItems.Add(src);
     this.ValueItems.Add(new ResultValue(value, unitcode));
 }