public void ChangeTheme(eUIMode mode, Collection <ResourceDictionary> applicationResources)
        {
            AppLogger.Instance.Log(eLogType.Debug, string.Format("BEGIN:: {0}", System.Reflection.MethodInfo.GetCurrentMethod().Name));
            int resourcesIndex = -1;

            for (int i = 0; i < applicationResources.Count; i++)
            {
                if (applicationResources[i].Contains("Theme"))
                {
                    resourcesIndex = i;
                    break;
                }
            }
            string fileName = string.Empty;

            if (mode == eUIMode.Dark)
            {
                fileName = Paths.DarkTheme;
            }
            else
            {
                fileName = Paths.LightTheme;
            }
            LoadResourceFile(fileName, resourcesIndex, applicationResources);
            AppLogger.Instance.Log(eLogType.Debug, string.Format("END:: {0}", System.Reflection.MethodInfo.GetCurrentMethod().Name));
        }
 private void ModeChanged(eUIMode uIMode)
 {
     AppLogger.Instance.LogBegin(this.GetType().Name, System.Reflection.MethodInfo.GetCurrentMethod().Name);
     GalaSoft.MvvmLight.Messaging.Messenger.Default.Send <UIModeMessage>(new UIModeMessage()
     {
         UIMode = uIMode
     });
     AppLogger.Instance.LogEnd(this.GetType().Name, System.Reflection.MethodInfo.GetCurrentMethod().Name);
 }
 private void UIModeChangeMsgHandler(UIModeMessage obj)
 {
     AppLogger.Instance.LogBegin(this.GetType().Name, System.Reflection.MethodInfo.GetCurrentMethod().Name);
     CurrentUIMode = obj.UIMode;
     ThemeChangedEvent(this, new ThemeChangeEventArgs()
     {
         NewUIMode = obj.UIMode
     });
     AppLogger.Instance.LogEnd(this.GetType().Name, System.Reflection.MethodInfo.GetCurrentMethod().Name);
 }