예제 #1
0
        private object aspect_Icon(object rowObject)
        {
            CryptoCompare.CryptoCompareCoin coin = (CryptoCompare.CryptoCompareCoin)rowObject;
            int rowheight = listView.RowHeightEffective;

            return(ContentManager.ResizeImage(ContentManager.GetSymbolIcon(coin.Symbol), rowheight, rowheight));
            //return ContentManager.GetWalletIcon(balance.WalletName);
        }
예제 #2
0
 private void listView_ItemActivate(object sender, EventArgs e)
 {
     if (listView.SelectedObject != null)
     {
         CryptoCompare.CryptoCompareCoin coin = listView.SelectedObject as CryptoCompare.CryptoCompareCoin;
         //LogManager.AddLogMessage(Name, "listView_ItemActivate", coin.Symbol, LogManager.LogMessageType.DEBUG);
         PreferenceManager.CryptoComparePreferences.Symbol = coin.Symbol;
         PreferenceManager.UpdatePreferenceFile(PreferenceManager.PreferenceType.CryptoCompare);
         toolStripTextBox_symbol.Text = coin.Symbol;
         UpdateUI();
     }
 }
예제 #3
0
        public object aspect_FullyPremined(object rowObject)
        {
            CryptoCompare.CryptoCompareCoin coin = (CryptoCompare.CryptoCompareCoin)rowObject;

            if (coin.FullyPremined != 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
예제 #4
0
        public object aspect_TotalCoinSupply(object rowObject)
        {
            CryptoCompare.CryptoCompareCoin coin = (CryptoCompare.CryptoCompareCoin)rowObject;

            var isNumeric = int.TryParse(coin.TotalCoinSupply, out int n);

            if (isNumeric)
            {
                return(Convert.ToInt64(coin.TotalCoinSupply).ToString("n"));
            }
            else
            {
                return(coin.TotalCoinSupply);
            }
        }