From 475241d7f0edc670ec70922255accd0790ca85d3 Mon Sep 17 00:00:00 2001 From: Terry MacDonald Date: Wed, 20 Oct 2021 18:07:16 +1300 Subject: [PATCH] Update to v2.1.0.9 --- DisplayMagician/Properties/AssemblyInfo.cs | 4 ++-- displaymagician/uiforms/displayprofileform.cs | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/DisplayMagician/Properties/AssemblyInfo.cs b/DisplayMagician/Properties/AssemblyInfo.cs index c9e7b92..f221d1d 100644 --- a/DisplayMagician/Properties/AssemblyInfo.cs +++ b/DisplayMagician/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ using System.Resources; [assembly: Guid("e4ceaf5e-ad01-4695-b179-31168eb74c48")] // Version information -[assembly: AssemblyVersion("2.1.0.7")] -[assembly: AssemblyFileVersion("2.1.0.7")] +[assembly: AssemblyVersion("2.1.0.9")] +[assembly: AssemblyFileVersion("2.1.0.9")] [assembly: NeutralResourcesLanguageAttribute( "en" )] [assembly: CLSCompliant(true)] diff --git a/displaymagician/uiforms/displayprofileform.cs b/displaymagician/uiforms/displayprofileform.cs index 1509888..2bf6413 100644 --- a/displaymagician/uiforms/displayprofileform.cs +++ b/displaymagician/uiforms/displayprofileform.cs @@ -56,10 +56,19 @@ namespace DisplayMagician.UIForms // Apply the Profile if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Successful) { - logger.Error($"DisplayProfileForm/Apply_Click: Waiting 0.5 sec for the display to apply"); + logger.Trace($"DisplayProfileForm/Apply_Click: The Profile {_selectedProfile.Name} was successfully applied. Waiting 0.5 sec for the display to settle after the change."); System.Threading.Thread.Sleep(500); + logger.Trace($"DisplayProfileForm/Apply_Click: Changing the selected profile in the imagelistview to Profile {_selectedProfile.Name}."); ChangeSelectedProfile(_selectedProfile); } + else if (ProfileRepository.ApplyProfile(_selectedProfile) == ApplyProfileResult.Cancelled) + { + logger.Warn($"DisplayProfileForm/Apply_Click: The user cancelled changing to Profile {_selectedProfile.Name}."); + } + else + { + logger.Warn($"DisplayProfileForm/Apply_Click: Error applying the Profile {_selectedProfile.Name}. Unable to change the display layout."); + } }