Ejemplo n.º 1
0
 public NotificationInvoker(Form context)
 {
     this.context = context;
     GUI = new NotificationGUI();
 }
Ejemplo n.º 2
0
 private static void SpawnForm(string title, string body)
 {
     var notForm = new NotificationGUI(title, body);
     _notifications.Add(notForm);
     notForm.Disposed += delegate
     {
         _notifications.Remove(notForm);
         ReOrderNotifications();
         notForm.Dispose();
         notForm = null;
     };
     UpdateFormLocation(_notifications.Count - 1);
     Application.Run(notForm);
 }