Beispiel #1
0
        protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
        {
            Graphics graphics = e.Graphics;

            graphics.DrawRectangle(Pens.Red, new Rectangle(1, 1, 18, 18));
            graphics.DrawImage(GetDefaultResource.GetImage("Common.none.png"), new Rectangle(2, 2, 17, 17));
            base.OnPaint(e);
        }
Beispiel #2
0
 public ChatListSubItem()
 {
     this.status        = ChatListSubItem.UserStatus.Online;
     this.displayName   = "displayName";
     this.nicName       = "nicName";
     this.personalMsg   = "Personal Message ...";
     this.IsVip         = false;
     this.PlatformTypes = PlatformType.PC;
     this.HeadImage     = GetDefaultResource.GetImage("Common.no_photo.png");
 }
Beispiel #3
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics graphics = e.Graphics;

            graphics.DrawImage(GetDefaultResource.GetImage("Common.color.png"), new Rectangle(0, 0, 165, 35));
            graphics.DrawRectangle(Pens.SteelBlue, 0, 0, 164, 34);
            SolidBrush solidBrush = new SolidBrush(this.selectedColor);

            graphics.FillRectangle((Brush)solidBrush, 9, 5, 24, 24);
            graphics.DrawRectangle(Pens.DarkCyan, this.m_rectSelected);
            base.OnPaint(e);
        }
Beispiel #4
0
        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics graphics = e.Graphics;

            if (this.m_bMouseEnter)
            {
                graphics.FillRectangle(Brushes.LightBlue, this.ClientRectangle);
                graphics.DrawRectangle(Pens.DarkCyan, new Rectangle(0, 0, this.Width - 1, this.Height - 1));
            }
            if (this.btnImage == null)
            {
                graphics.DrawImage(GetDefaultResource.GetImage("Common.none.png"), new Rectangle(2, 2, 17, 17));
            }
            else
            {
                graphics.DrawImage(this.btnImage, new Rectangle(2, 2, 17, 17));
            }
            graphics.DrawString(this.Text, this.Font, Brushes.Black, 21f, (float)((this.Height - this.Font.Height) / 2));
            if (this.isSelected)
            {
                graphics.DrawRectangle(Pens.DarkCyan, new Rectangle(0, 0, this.Width - 1, this.Height - 1));
            }
            base.OnPaint(e);
        }