Ejemplo n.º 1
0
 private bool TryUpdate()
 {
     try
     {
         var path = Application.ExecutablePath;
         AvailableUpdate.Update();
         Process.Start(path);
         Application.Exit();
         return(true);
     }
     catch (Exception ex)
     {
         var window = new ExceptionWindow("Update error", "Failed to update the application.", FailableFactory.Failure(ex, "Updating"));
         window.ShowDialog(this);
         return(false);
     }
 }
Ejemplo n.º 2
0
        public static void ShowImportFailed(string path, IFailable import, IWin32Window owner)
        {
            var window = new ExceptionWindow("Failed to load icons", $"The custom icon source at '{path}' failed to load.", import);

            window.ShowDialog(owner);
        }