Example #1
0
        protected virtual void OnCustomPaint(CustomPaintEventArgs e)
        {
            CustomPaintEventHandler customPaint = this.CustomPaint;

            if (customPaint != null)
            {
                customPaint(this, e);
                this._customTitle = e.CustomTitle;
            }
        }
Example #2
0
 protected virtual void OnCustomPaint(CustomPaintEventArgs e)
 {
     CustomPaintEventHandler paintEventHandler = this.CustomPaint;
       if (paintEventHandler == null)
     return;
       paintEventHandler((object) this, e);
 }
Example #3
0
 private void controlInterface_SpectrumAnalyzerCustomPaint(object sender, CustomPaintEventArgs e)
 {
     if (!this.showBookmarksCheckBox.Checked)
     return;
       SpectrumAnalyzer spectrumAnalyzer = (SpectrumAnalyzer) sender;
       using (SolidBrush solidBrush1 = new SolidBrush(Color.FromArgb(50, Color.LightBlue)))
       {
     using (SolidBrush solidBrush2 = new SolidBrush(Color.White))
     {
       using (StringFormat format = new StringFormat(StringFormatFlags.LineLimit | StringFormatFlags.NoClip))
       {
     using (Font font = new Font("Lucida Console", 8f))
     {
       format.Alignment = StringAlignment.Center;
       Rectangle rect = new Rectangle();
       foreach (FrequencyManagerPanel.VisibleEntry visibleEntry in this._visibleEntries)
       {
         rect.X = (int) Math.Max(30f, spectrumAnalyzer.FrequencyToPoint(visibleEntry.MinFreq));
         rect.Y = 30;
         rect.Width = (int) Math.Min((float) (spectrumAnalyzer.Width - 30), spectrumAnalyzer.FrequencyToPoint(visibleEntry.MaxFreq)) - rect.X;
         rect.Height = spectrumAnalyzer.Height - 60;
         e.Graphics.FillRectangle((Brush) solidBrush1, rect);
         rect.Y += 10;
         rect.Height -= 10;
         e.Graphics.DrawString(visibleEntry.Description, font, (Brush) solidBrush2, (RectangleF) rect, format);
       }
     }
       }
     }
       }
 }
Example #4
0
 private void waterfall_CustomPaint(object sender, CustomPaintEventArgs e)
 {
     CustomPaintEventHandler paintEventHandler = this.WaterfallCustomPaint;
       if (paintEventHandler == null)
     return;
       paintEventHandler(sender, e);
 }
Example #5
0
 private void spectrumAnalyzer_CustomPaint(object sender, CustomPaintEventArgs e)
 {
     CustomPaintEventHandler paintEventHandler = this.SpectrumAnalyzerCustomPaint;
       if (paintEventHandler == null)
     return;
       paintEventHandler(sender, e);
 }