/// <summary> /// Initializes a new instance of the <see cref="TrySpeechPlus.CDrawHandler"/> class. /// </summary> /// -------------------------------------------------------------- public GProfileDisk(double x1, double y1, CParamSet para1) { para = para1; X = x1; Y = y1; iFrom = 1; iTo = para1.SegmentCount; pcts = para1.GetWidthArray(); segmentColors = para1.SegmentColors; segmentLabels = para1.SegmentLabels; }
public void Init(double x1, double y1, CParamSet para1) { // ----------------------------------------------------------------------------- // This is for re-use, so just call constr with no args, and then call this // repeatedly as needed, to re-use the same object... X = x1; Y = y1; iFrom = 1; iTo = para1.SegmentCount; para = para1; pcts = para1.GetWidthArray(); segmentColors = para1.SegmentColors; segmentLabels = para1.SegmentLabels; }