Restore taskbar

This commit is contained in:
Patrick Fic
2021-02-26 07:22:29 -08:00
parent 1a575884f4
commit 6b819ada41
3 changed files with 37 additions and 4 deletions

View File

@@ -95,7 +95,8 @@ namespace BodyshopPartner.Utils
logger.Debug("Install Progress " + _.ToString());
InstallProgress(_);
});
UpdateManager.RestartApp(System.Reflection.Assembly.GetEntryAssembly().Location);
logger.Debug("Attempting to restart application. " + System.Reflection.Assembly.GetEntryAssembly().Location);
UpdateManager.RestartApp();
}
catch (Exception Ex)
{
@@ -106,6 +107,22 @@ namespace BodyshopPartner.Utils
}
public static void test()
{
using (var updateManager = new UpdateManager(UpdatePath))
{
try
{
UpdateManager.RestartApp();
}
catch (Exception Ex)
{
logger.Error("Error updating Partner App. " + Ex.ToString());
}
}
}
public static void BackupSettings()
{
string settingsFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath;