public void CopyFrom(FillToCurvePlotStyle from, bool copyWithDataReferences, Main.EventFiring eventFiring) { if (object.ReferenceEquals(this, from)) { return; } using (var suspendToken = SuspendGetToken()) { _independentFillColor = from._independentFillColor; FillBrush = null == from._fillBrush ? null : from._fillBrush.Clone(); _independentFrameColor = from._independentFrameColor; _framePen = null == from._framePen ? null : from._framePen.Clone(); _fillToPrevPlotItem = from._fillToPrevPlotItem; _fillToNextPlotItem = from._fillToNextPlotItem; //this._parent = from._parent; suspendToken.Resume(eventFiring); } }
public FillToCurvePlotStyle(FillToCurvePlotStyle from, bool copyWithDataReferences) { _cachedPaintOneRange = StraightConnection_PaintOneRange; CopyFrom(from, copyWithDataReferences, Main.EventFiring.Suppressed); }
public FillToCurvePlotStyle(FillToCurvePlotStyle from, bool copyWithDataReferences) { _cachedPaintOneRange = this.StraightConnection_PaintOneRange; CopyFrom(from, copyWithDataReferences, Main.EventFiring.Suppressed); }
public void CopyFrom(FillToCurvePlotStyle from, bool copyWithDataReferences, Main.EventFiring eventFiring) { if (object.ReferenceEquals(this, from)) return; using (var suspendToken = SuspendGetToken()) { this._independentFillColor = from._independentFillColor; this.FillBrush = null == from._fillBrush ? null : from._fillBrush.Clone(); this._independentFrameColor = from._independentFrameColor; this._framePen = null == from._framePen ? null : from._framePen.Clone(); this._fillToPrevPlotItem = from._fillToPrevPlotItem; this._fillToNextPlotItem = from._fillToNextPlotItem; //this._parent = from._parent; suspendToken.Resume(eventFiring); } }