public ClosedSymbolBase WithPlotColorInfluence(PlotColorInfluence value) { if (_plotColorInfluence == value) { return(this); } else { var result = (ClosedSymbolBase)MemberwiseClone(); result._plotColorInfluence = value; return(result); } }
private void EhPlotColorInfluenceForAllSelected(PlotColorInfluence obj) { foreach (var node in _currentItems) { if (node.IsSelected) { var item = (IScatterSymbol)node.Tag; node.Tag = item.WithPlotColorInfluence(obj); } } View_CurrentItems_Initialize(); SetListDirty(); }
private void EhPlotColorInfluenceChanged(PlotColorInfluence obj) { _doc = _doc.WithPlotColorInfluence(obj); _view.ScatterSymbolForPreview = _doc; }
protected ClosedSymbolBase(NamedColor fillColor, bool isFillColorInfluencedByPlotColor) { _fillColor = fillColor; _plotColorInfluence = isFillColorInfluencedByPlotColor ? PlotColorInfluence.FillColorFull : PlotColorInfluence.None; }
IScatterSymbol IScatterSymbol.WithPlotColorInfluence(PlotColorInfluence plotColorInfluence) { return(WithPlotColorInfluence(plotColorInfluence)); }
IScatterSymbol IScatterSymbol.WithPlotColorInfluence(PlotColorInfluence plotColorInfluence) { return this; }
public ClosedSymbolBase WithPlotColorInfluence(PlotColorInfluence value) { if (_plotColorInfluence == value) { return this; } else { var result = (ClosedSymbolBase)this.MemberwiseClone(); result._plotColorInfluence = value; return result; } }