/// <summary> /// Handles the PropertyChanged event of the Path control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="PropertyChangedEventArgs"/> instance containing the event data.</param> private void Path_PropertyChanged(object sender, PropertyChangedEventArgs e) { ZeroitMetroPieChartSegment metroPieChartSegment = (ZeroitMetroPieChartSegment)sender; if (Operators.CompareString(e.PropertyName, "FillColor", false) == 0) { } this.Invalidate(); }
/// <summary> /// Initializes a new instance of the <see cref="ZeroitMetroPieChartSegment"/> class. /// </summary> public ZeroitMetroPieChartSegment() { ZeroitMetroPieChartSegment.__ENCAddToList(this); this._style = ZeroitMetroPieChartSegment.eStyle.Custom; this._fillStyle = HatchStyle.BackwardDiagonal; this._UseFillStyle = false; this._value = 10; this._fillColor = Color.FromArgb(255, 129, 0); this._borderColor = Color.FromArgb(255, 129, 0); this._style = ZeroitMetroPieChartSegment.eStyle.LightOrange; }
/// <summary> /// Initializes a new instance of the <see cref="ZeroitMetroPieChartSegmentCollectionEventArgs"/> class. /// </summary> /// <param name="item">The item.</param> public ZeroitMetroPieChartSegmentCollectionEventArgs(ZeroitMetroPieChartSegment item) { this._item = item; }