Inheritance: IDisposable
Exemple #1
0
 public static void Timer()
 {
     using (var dlg = new Dialog ("OMFG–“UNICODE”", "I'm running MØNØ!!!!1")) {
         dlg.Show ();
         for (int i = 50; i > 0; i--) {
             dlg.Message = String.Format("Closing in {0:0.00} seconds.", i/10.0);
             Thread.Sleep (100);
         }
     }
 }
Exemple #2
0
 public static void Alert(string title, string message, params Button[] buttons)
 {
     using (var a = new Dialog (title, message)) {
         foreach (var b in buttons) {
             a.AddButton (b);
         }
         a.Show ();
         HandleEvent (PlatformServices.NextDomainEvent (eventDomain));
     }
 }