private void waterfall_CustomPaint(object sender, CustomPaintEventArgs e) { CustomPaintEventHandler waterfallCustomPaint = this.WaterfallCustomPaint; if (waterfallCustomPaint != null) { waterfallCustomPaint(sender, e); } }
private void spectrumAnalyzer_BackgroundCustomPaint(object sender, CustomPaintEventArgs e) { CustomPaintEventHandler spectrumAnalyzerBackgroundCustomPaint = this.SpectrumAnalyzerBackgroundCustomPaint; if (spectrumAnalyzerBackgroundCustomPaint != null) { spectrumAnalyzerBackgroundCustomPaint(sender, e); } }
protected virtual void OnCustomPaint(CustomPaintEventArgs e) { CustomPaintEventHandler customPaint = this.CustomPaint; if (customPaint != null) { customPaint(this, e); this._customTitle = e.CustomTitle; } }
protected virtual void OnCustomPaint(CustomPaintEventArgs e) { CustomPaintEventHandler customPaint = this.CustomPaint; customPaint?.Invoke(this, e); }