public SettingsViewModel()
{
Title = ((AssemblyTitleAttribute) GetType().Assembly.GetCustomAttribute(typeof(AssemblyTitleAttribute))).Title + " - " + AssemblyName.GetAssemblyName(typeof(UpdateManager).Assembly.Location).Version;
UseTimeOfDay = Settings.Instance.UseTimeOfDay;
MovieWindowsMode = Settings.Instance.MovieWindowsMode;
ShouldCacheMovies = Settings.Instance.ShouldCacheMovies;
PlayInLoop = Settings.Instance.PlayInLoop;
CachePath = !string.IsNullOrEmpty(Settings.Instance.CachePath) ? Settings.Instance.CachePath : Path.Combine(AppEnvironment.DataFolder, "Cache");
BlankOnRemoteDesktop = Settings.Instance.BlankOnRemoteDesktop;
OkCommand = new DelegateCommand(OnOk);
UpdateClickCommand = new DelegateCommand(OnUpdateClickCommand);
BrowseCachePathCommand = new DelegateCommand(OnBrowseCachePathCommand);
UpdateManager.Instance.UpdatesAvailable += OnUpdatesAvailable;
UpdateManager.Instance.CheckForUpdatesAsync();
}