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); }
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(); } }
public object aspect_FullyPremined(object rowObject) { CryptoCompare.CryptoCompareCoin coin = (CryptoCompare.CryptoCompareCoin)rowObject; if (coin.FullyPremined != 0) { return(true); } else { return(false); } }
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); } }