예제 #1
0
        private void waterfall_CustomPaint(object sender, CustomPaintEventArgs e)
        {
            CustomPaintEventHandler waterfallCustomPaint = this.WaterfallCustomPaint;

            if (waterfallCustomPaint != null)
            {
                waterfallCustomPaint(sender, e);
            }
        }
예제 #2
0
        private void spectrumAnalyzer_BackgroundCustomPaint(object sender, CustomPaintEventArgs e)
        {
            CustomPaintEventHandler spectrumAnalyzerBackgroundCustomPaint = this.SpectrumAnalyzerBackgroundCustomPaint;

            if (spectrumAnalyzerBackgroundCustomPaint != null)
            {
                spectrumAnalyzerBackgroundCustomPaint(sender, e);
            }
        }
예제 #3
0
        protected virtual void OnCustomPaint(CustomPaintEventArgs e)
        {
            CustomPaintEventHandler customPaint = this.CustomPaint;

            if (customPaint != null)
            {
                customPaint(this, e);
                this._customTitle = e.CustomTitle;
            }
        }
예제 #4
0
        protected virtual void OnCustomPaint(CustomPaintEventArgs e)
        {
            CustomPaintEventHandler customPaint = this.CustomPaint;

            customPaint?.Invoke(this, e);
        }