Beispiel #1
0
 //
 public void Refresh()
 {
     LRect1 = new Rectangle(Form1.W - 360, Form1.H - 195, 120, 40);
     LRect2 = new Rectangle(Form1.W - 240, Form1.H - 195, 240, 40);
     for (int i = 0; i < 10; ++i)
     {
         num[i].MoveTo(num[i].str, num[i].loc);
     }
     for (int i = 0; i < 10; ++i)
     {
         opr[i].MoveTo(opr[i].str, opr[i].loc);
     }
     for (int i = 0; i < 10; ++i)
     {
         GridR[i] = GetRectangle(i);
     }
     for (int i = 0; i < 10; ++i)
     {
         num[i].Refresh();
     }
     for (int i = 0; i < 10; ++i)
     {
         opr[i].Refresh();
     }
     Am.Refresh();
 }
Beispiel #2
0
 public void Refresh()
 {
     SetCenter();
     RB.Refresh();
     LT.Refresh();
     W = RB.X - LT.X;
     for (int i = 0; i < MapX; ++i)
     {
         for (int j = 0; j < MapY; ++j)
         {
             MapR[i, j] = RectXY(i, j);
         }
     }
     for (int i = 0; i < MapX; ++i)
     {
         for (int j = 0; j < MapY; ++j)
         {
             cmd[i, j].Refresh();
         }
     }
 }