public FactorConversionVm(FactorConversion conversion) : base(conversion) { this.disposable = conversion.ObservePropertyChanged(x => x.Factor) .SubscribeOn(TaskPoolScheduler.Default) .SubscribeAsync(() => this.UpdateAsync()); }
public static PrefixConversion Create(FactorConversion factorConversion, Prefix prefix) { var prefixConversion = Create((INameAndSymbol)factorConversion, prefix); prefixConversion.unit = factorConversion.GetUnit(); return(prefixConversion); }
public static PrefixConversionVm Create(FactorConversion factorConversion, Prefix prefix) { var prefixConversion = PrefixConversion.Create(factorConversion, prefix); return(new PrefixConversionVm(factorConversion.PrefixConversions, factorConversion, prefixConversion)); }