예제 #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));
 }