public NotificationInvoker(Form context) { this.context = context; GUI = new NotificationGUI(); }
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); }