24 lines
		
	
	
		
			691 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			691 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Text;
 | 
						|
 | 
						|
namespace DevComponents.DotNetBar
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// Represents the base class for the SystemCaptionItem painter.
 | 
						|
    /// </summary>
 | 
						|
    internal class SystemCaptionItemPainter
 | 
						|
    {
 | 
						|
        public virtual void Paint(SystemCaptionItemRendererEventArgs e)
 | 
						|
        {
 | 
						|
            if (e.SystemCaptionItem.IsSystemIcon)
 | 
						|
                PaintSystemIcon(e, e.SystemCaptionItem.GetEnabled());
 | 
						|
            else
 | 
						|
                PaintFormButtons(e);
 | 
						|
        }
 | 
						|
 | 
						|
        public virtual void PaintSystemIcon(SystemCaptionItemRendererEventArgs e, bool isEnabled) { }
 | 
						|
 | 
						|
        public virtual void PaintFormButtons(SystemCaptionItemRendererEventArgs e) { }
 | 
						|
    }
 | 
						|
}
 |