void LoadCurrencies() { try { IEnumerable<string> currencies = Directory.EnumerateDirectories("Currencies"); foreach (string currency in currencies) { string currencyName = currency.Substring(currency.LastIndexOf('\\') + 1); BCNet.Bitcoin bc = new BCNet.Bitcoin(currencyName, currency); mCurrencies.Add(bc); mIRC.SubscribeCurrency(bc.IRCChannelName, new CryptoIRC.PeerDiscoveredCB(bc.NodeDiscovered)); //bc.AddNode("54.241.118.84", 13580); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
void LoadCurrencies() { try { IEnumerable <string> currencies = Directory.EnumerateDirectories("Currencies"); foreach (string currency in currencies) { string currencyName = currency.Substring(currency.LastIndexOf('\\') + 1); BCNet.Bitcoin bc = new BCNet.Bitcoin(currencyName, currency); mCurrencies.Add(bc); mIRC.SubscribeCurrency(bc.IRCChannelName, new CryptoIRC.PeerDiscoveredCB(bc.NodeDiscovered)); //bc.AddNode("54.241.118.84", 13580); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }