Beispiel #1
0
 public static ReadTableConfig Instance()
 {
     if (obj == null)
     {
         obj = new ReadTableConfig();
     }
     return(obj);
 }
Beispiel #2
0
        void ReDraw()
        {
            Image  bkimg = Image.FromFile("img/bk.jpg");
            Bitmap bmp   = new Bitmap(bkimg.Width, bkimg.Height, PixelFormat.Format32bppArgb);

            Graphics g = Graphics.FromImage(bmp);

            g.DrawImage(bkimg, 0, 0);

            //ReadButConfig.Instance().DrawSmallParts(ref g);
            ReadTableConfig.Instance().DrawParts(ref g);

            g.Flush();
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
            pictureBox1.Image    = bmp;

            g.Dispose();
            bkimg.Dispose();
        }