private void ApplyChanges() { try { StaticViewModel.IsLoading = true; LoadedPanelEnabled = false; StaticViewModel.AddLogMessage("Applying changes post install"); HostService.StopRadeonSoftware(); HostService.ApplyChanges(); RadeonScheduledTaskList.ApplyChanges(); ServiceList.ApplyChanges(); InstalledList.ApplyChanges(); TempFileList.ApplyChanges(); LoadOrRefresh(); StaticViewModel.AddLogMessage("Changes applied to post install"); } catch (Exception ex) { StaticViewModel.AddLogMessage(ex, "Failed to apply post install changes"); } finally { StaticViewModel.IsLoading = false; } }
public void LoadOrRefresh() { try { StaticViewModel.AddLogMessage("Loading post install"); StaticViewModel.IsLoading = true; LoadedPanelEnabled = false; HostService.LoadOrRefresh(); RadeonScheduledTaskList.LoadOrRefresh(); ServiceList.LoadOrRefresh(); InstalledList.LoadOrRefresh(); TempFileList.LoadOrRefresh(); StaticViewModel.AddLogMessage("Loading post install complete "); LoadedPanelEnabled = true; } catch (Exception ex) { StaticViewModel.AddLogMessage(ex); } finally { StaticViewModel.IsLoading = false; } }