| | |
| | | // using (var brush = new(ColorTranslator.FromHtml("#0000FF"))) |
| | | // g.FillRectangle(brush, new Rectangle(Width - 138, 0, 46, 31)); |
| | | } |
| | | |
| | | public System.Drawing.Image AppIcon { get; set; } |
| | | private void DrawTitleBarIcon(Graphics g) |
| | | { |
| | | if (_DrawIcon) |
| | | if (_DrawIcon && AppIcon != null) |
| | | { |
| | | titleBarStringLeft = _TextAlignment == Alignment.Left ? 33 : 5; |
| | | Rectangle iconRect = new(10, 7, 16, 16); |
| | | |
| | | g.DrawIcon(FindForm().Icon, iconRect); |
| | | g.DrawImage(AppIcon, iconRect); |
| | | //g.DrawIcon(FindForm().Icon, iconRect); |
| | | } |
| | | else |
| | | { |