/// <summary>
 /// Initializes a new instance of the <see cref="FavoriteData"/> class.
 /// </summary>
 /// <param name="conversion">Current active conversion information</param>
 /// <param name="sourceValue">The source value numeric entered by the user.</param>
 internal FavoriteData(CurrentConversion conversion, double sourceValue)
 {
     this.category               = conversion.CurrentCategory.CategoryLocalized;
     this.categoryResource       = conversion.CurrentCategory.Category;
     this.sourceUnitName         = conversion.SourceUnit.NameLocalized;
     this.sourceUnitNameResource = conversion.SourceUnit.ResourceName;
     this.targetUnitName         = conversion.TargetUnit.NameLocalized;
     this.targetUnitNameResource = conversion.TargetUnit.ResourceName;
     this.sourceUnitValue        = sourceValue;
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 internal MainPageViewModel()
 {
     this.ConversionSettings = new CurrentConversion();
     this.ConversionImageSource = ApplicationState.IsDarkTheme ?
         SwitchConversionImageLight : SwitchConversionImageDark;
     this.worker.DoWork += new DoWorkEventHandler(DeferStartupWork);
     
 }