Esempio n. 1
0
 private void CooordTimer_Tick(object sender, EventArgs e)
 {
     if (CooordTimer.Enabled)
     {
         TopLeft.Text = $"Top Left: {SquareDraw.Location.X}, {SquareDraw.Location.Y}";
         TopLeft.Refresh();
         TopRight.Text = $"Top Right: {SquareDraw.Location.X - Convert.ToInt32(Width1.Text)}, {SquareDraw.Location.Y}";
         TopRight.Refresh();
         LowLeft.Text = $"Top Right: {SquareDraw.Location.X}, {SquareDraw.Location.Y - Convert.ToInt32(Width1.Text)}";
         LowLeft.Refresh();
         LowRight.Text = $"Low Right: {SquareDraw.Location.X - Convert.ToInt32(Width1.Text)}, {SquareDraw.Location.Y - Convert.ToInt32(Width1.Text)}";
         LowRight.Refresh();
     }
     else
     {
     }
 }