Beispiel #1
0
        public override string ToString()
        {
            string result = "";

            if (UsdRewardLive > 0)
            {
                result += "Live:  " + UsdRewardLive.ToCurrency("$");
            }
            if (UsdRewardDay > 0)
            {
                if (!String.IsNullOrEmpty(result))
                {
                    result += "\n";
                }
                result += "24h:   " + UsdRewardDay.ToCurrency("$");
            }
            if (CoinRewardDay > 0 && CoinRewardLive > 0)
            {
                if (!String.IsNullOrEmpty(result))
                {
                    result += "\n";
                }
                double relativeCoinReward = CoinRewardLive / CoinRewardDay;
                result += "Coins: " + (Math.Round(relativeCoinReward, 4) * 100) + "%";;
            }
            return(result);
        }
Beispiel #2
0
        public override string ToString()
        {
            string result = "";

            if (UsdRewardLive > 0)
            {
                result += "Live:  " + UsdRewardLive.ToCurrency("$");
            }
            if (UsdRewardDay > 0)
            {
                if (!String.IsNullOrEmpty(result))
                {
                    result += "\n";
                }
                result += "24h:   " + UsdRewardDay.ToCurrency("$");
            }
            if (CoinRewardDay > 0 && CoinRewardLive > 0)
            {
                if (!String.IsNullOrEmpty(result))
                {
                    result += "\n";
                }
                double relativeCoinReward = CoinRewardLive / CoinRewardDay;
                result += "Diff-: " + Math.Round(relativeCoinReward * 100, 0, MidpointRounding.AwayFromZero) + "%";;
            }
            return(result);
        }