Exemple #1
0
        protected override void OnPaint(PaintEventArgs e)
        {
            //绘制圆角边框
            RoundFormPainter.Paint(this, e);

            //绘制皮肤
            Graphics g = e.Graphics;

            //绘制窗体顶部左上角图片
            g.DrawImage(imgBackGroud, 0, 0, imgBackGroud.Width, imgBackGroud.Height);
            //绘制窗体顶部右上角图片
            g.DrawImage(imgHeader, 0, 0, imgHeader.Width, imgHeader.Height);
            //绘制窗体顶部右上角图片
            int x = (imgBackGroud.Width - imgLogin.Width) / 2;

            g.DrawImage(imgLogin, x, 45, imgLogin.Width, imgLogin.Height);

            base.OnPaint(e);
        }
Exemple #2
0
 private void Warning_Paint(object sender, PaintEventArgs e)
 {
     RoundFormPainter.Paint(sender, e);
 }