コード例 #1
0
 public FactorConversionVm(FactorConversion conversion)
     : base(conversion)
 {
     this.disposable = conversion.ObservePropertyChanged(x => x.Factor)
                       .SubscribeOn(TaskPoolScheduler.Default)
                       .SubscribeAsync(() => this.UpdateAsync());
 }
コード例 #2
0
        public static PrefixConversion Create(FactorConversion factorConversion, Prefix prefix)
        {
            var prefixConversion = Create((INameAndSymbol)factorConversion, prefix);

            prefixConversion.unit = factorConversion.GetUnit();
            return(prefixConversion);
        }
コード例 #3
0
        public static PrefixConversionVm Create(FactorConversion factorConversion, Prefix prefix)
        {
            var prefixConversion = PrefixConversion.Create(factorConversion, prefix);

            return(new PrefixConversionVm(factorConversion.PrefixConversions, factorConversion, prefixConversion));
        }