public static void Notify(Notification i)
        {
            if (dismissed_notifications.Contains(i.ID))
            {
                return;
            }

            // for now, this is how will I handle notifications.
            // I intend to get visualstudio-like notification pane.
            App.Current.Dispatcher.Invoke(new Action(() =>
            {
                (App.Current.MainWindow as MainWindow).NotifyIcon.ShowBalloonTip(i.Title, i.Message, get_icon(i.Type));
            }));
        }
 public static void DismissNotification(Notification i)
 {
     dismissed_notifications.Add(i.ID);
 }