Пример #1
0
 private async void DoAuto()
 {
     for (int i = 0; i < 5; i++)
     {
         MyEllips.SetCoordinate(Convert.ToInt32(MyEllips.CanvasTop) + 20, Convert.ToInt32(MyEllips.CanvasLeft) + 20);
     }
     await Task.Delay(1000);
 }
Пример #2
0
 private void MoveTop()
 {
     MyEllips.SetCoordinate(0, Convert.ToInt32(MyEllips.CanvasTop) - 20);
 }
Пример #3
0
 private void MoveLeft()
 {
     MyEllips.SetCoordinate(0, Convert.ToInt32(MyEllips.CanvasLeft) - 20);
 }