protected void __SetFormulaIgnoreNull(SIDSRC sidsrc, FormulaLiteral formula) { if (formula.HasValue) { this.StreamItems.Add(sidsrc); this.ValueItems.Add(formula); } }
protected override void _commit_to_surface(ShapeSheetSurface surface) { // Do nothing if there aren't any updates if (this.ValueItems.Count < 1) { return; } var stream = SIDSRC.ToStream(this.StreamItems); var formulas = WriterHelper.build_formulas_array(this.ValueItems); var flags = this.ComputeGetFormulaFlags(); int c = surface.SetFormulas(stream, formulas, (short)flags); }
protected override void _commit_to_surface(ShapeSheetSurface surface) { // Do nothing if there aren't any updates if (this.ValueItems.Count < 1) { return; } var stream = SIDSRC.ToStream(this.StreamItems); var unitcodes = WriterHelper.build_results_arrays_unitcode(this.ValueItems); var results = WriterHelper.build_results_arrays_results(this.ValueItems); var flags = this.ComputeGetResultFlags(this.ValueItems[0].ResultType); surface.SetResults(stream, unitcodes, results, (short)flags); }
public void SetResult(SIDSRC sidsrc, ResultValue v) { this.StreamItems.Add(sidsrc); this.ValueItems.Add(v); }
public void SetResult(SIDSRC sidsrc, string value, IVisio.VisUnitCodes unitcode) { var v = new ResultValue(value, unitcode); this.SetResult(sidsrc, v); }
public void SetFormula(SIDSRC sidsrc, FormulaLiteral formula) { this.__SetFormulaIgnoreNull(sidsrc, formula); }
public void SetFormula(short id, SRC src, FormulaLiteral formula) { var sidsrc = new SIDSRC(id, src); this.__SetFormulaIgnoreNull(sidsrc, formula); }