Beispiel #1
0
        public CoinViewModel(ICoin data) : this(data.GetId())
        {
            _code               = data.Code;
            _sortNumber         = data.SortNumber;
            _algoId             = data.AlgoId;
            _testWallet         = data.TestWallet;
            _enName             = data.EnName;
            _cnName             = data.CnName;
            _icon               = data.Icon;
            _walletRegexPattern = data.WalletRegexPattern;
            _justAsDualCoin     = data.JustAsDualCoin;
            _notice             = data.Notice;
            string iconFileFullName = SpecialPath.GetIconFileFullName(data);

            if (!string.IsNullOrEmpty(iconFileFullName) && File.Exists(iconFileFullName))
            {
                _iconImageSource = iconFileFullName;
            }
        }
Beispiel #2
0
        public CoinViewModel(ICoin data) : this(data.GetId())
        {
            _code               = data.Code;
            _algoId             = data.AlgoId;
            _testWallet         = data.TestWallet;
            _enName             = data.EnName;
            _cnName             = data.CnName;
            _icon               = data.Icon;
            _walletRegexPattern = data.WalletRegexPattern;
            _justAsDualCoin     = data.JustAsDualCoin;
            _notice             = data.Notice;
            _tutorialUrl        = data.TutorialUrl;
            _isHot              = data.IsHot;
            _kernelBrand        = data.KernelBrand;
            _minGpuMemoryGb     = data.MinGpuMemoryGb;
            string iconFileFullName = SpecialPath.GetIconFileFullName(data);

            if (!string.IsNullOrEmpty(iconFileFullName) && File.Exists(iconFileFullName))
            {
                _iconImageSource = iconFileFullName;
            }
        }