System.Windows.Forms.ThemeWin32Classic.DrawRadioButtonGlyph C# (CSharp) Method

DrawRadioButtonGlyph() public method

public DrawRadioButtonGlyph ( Graphics g, RadioButton rb, Rectangle glyphArea ) : void
g System.Drawing.Graphics
rb RadioButton
glyphArea System.Drawing.Rectangle
return void
		public virtual void DrawRadioButtonGlyph (Graphics g, RadioButton rb, Rectangle glyphArea)
		{
			if (rb.Pressed)
				ThemeElements.CurrentTheme.RadioButtonPainter.PaintRadioButton (g, glyphArea, rb.BackColor, rb.ForeColor, ElementState.Pressed, rb.FlatStyle, rb.Checked);
			else if (rb.InternalSelected)
				ThemeElements.CurrentTheme.RadioButtonPainter.PaintRadioButton (g, glyphArea, rb.BackColor, rb.ForeColor, ElementState.Normal, rb.FlatStyle, rb.Checked);
			else if (rb.Entered)
				ThemeElements.CurrentTheme.RadioButtonPainter.PaintRadioButton (g, glyphArea, rb.BackColor, rb.ForeColor, ElementState.Hot, rb.FlatStyle, rb.Checked);
			else if (!rb.Enabled)
				ThemeElements.CurrentTheme.RadioButtonPainter.PaintRadioButton (g, glyphArea, rb.BackColor, rb.ForeColor, ElementState.Disabled, rb.FlatStyle, rb.Checked);
			else
				ThemeElements.CurrentTheme.RadioButtonPainter.PaintRadioButton (g, glyphArea, rb.BackColor, rb.ForeColor, ElementState.Normal, rb.FlatStyle, rb.Checked);
		}
ThemeWin32Classic