コード例 #1
0
        public void paint( Point point,string groundtype, int nplants)
        {
            if (this.InvokeRequired)
            {
                PaintCallback d = new PaintCallback(paint);
                this.Invoke(d, new object[] { point, groundtype, nplants });
            }
            else
            {
                lock (locker)
                {
                    mapimage= _gmap.paint(mapimage, point, groundtype, nplants);
                    this.Refresh();
                }

            }
        }
コード例 #2
0
ファイル: fHUD.cs プロジェクト: samik3k/RagnarokHUD
 private new void Paint(RECT rect)
 {
     if (this.InvokeRequired)
     {
         PaintCallback d = new PaintCallback(Paint);
         this.Invoke(d, new object[] { rect });
     }
     else
     {
         this.Location = new Point(rect.left, rect.top);
         this.Size = new Size(rect.right - rect.left, rect.bottom - rect.top);
     }
 }