Ejemplo n.º 1
0
 public static MessageBox Show(Point size, string title, string message, MessageBoxButtons buttons, Desktop target)
 {
     MessageBox box = new MessageBox(title, message);
     box.Size = size;
     box.Position = (target.Size - size) / 2;
     box.InitButtons(buttons);
     box.Show(target);
     return box;
 }
Ejemplo n.º 2
0
 private System.Collections.IEnumerator WalkSquare(MessageBox dialog)
 {
     yield return dialog.Animation.Position(new Point(10, 10), 1000);
     yield return dialog.Animation.Position(new Point(1000, 10), 1000);
     yield return dialog.Animation.Position(new Point(1000, 600), 1000);
     yield return dialog.Animation.Position(new Point(10, 600), 1000);
 }