Ejemplo n.º 1
0
 private static void UpdateCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
 {
     if (!e.Cancelled)
     {
         if (e.Error == null)
         {
             RestartRequested?.Invoke(new object(), new EventArgs());
         }
         else
         {
             AppNotifyIcon.DisplayNotificationMessage($"We were unable to update to the latest version.\nError: {e.Error.Message}");
             CompletedWithoutUpdate.Invoke(new object(), new EventArgs());
         }
     }
     else
     {
         CompletedWithoutUpdate?.Invoke(new object(), new EventArgs());
     }
 }
Ejemplo n.º 2
0
        private static void AppClosingCleanup()
        {
            TaskbarManager.SetAllVisibility(true);

            AppNotifyIcon.Dispose();
        }