private static void updateCoinInfo( Balances info, string name ) { btcCurrent = double.Parse( info.Return.BalancesAvailable.BTC ) + double.Parse( info.Return.BalancesHold.BTC ); ltcCurrent = double.Parse( info.Return.BalancesAvailable.LTC ) + double.Parse( info.Return.BalancesHold.LTC ); if( name.Equals( "DOGE" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.DOGE ) + double.Parse( info.Return.BalancesHold.DOGE ); COINAvailable = double.Parse( info.Return.BalancesAvailable.DOGE ); } else if( name.Equals( "XPM" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.XPM ) + double.Parse( info.Return.BalancesHold.XPM ); COINAvailable = double.Parse( info.Return.BalancesAvailable.XPM ); } else if( name.Equals( "DGC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.DGC ) + double.Parse( info.Return.BalancesHold.DGC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.DGC ); } else if( name.Equals( "MEC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.MEC ) + double.Parse( info.Return.BalancesHold.MEC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.MEC ); } else if( name.Equals( "PXC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.PXC ) + double.Parse( info.Return.BalancesHold.PXC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.PXC ); } else if( name.Equals( "GLD" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.GLD ) + double.Parse( info.Return.BalancesHold.GLD ); COINAvailable = double.Parse( info.Return.BalancesAvailable.GLD ); } else if( name.Equals( "WDC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.WDC ) + double.Parse( info.Return.BalancesHold.WDC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.WDC ); } else if( name.Equals( "ANC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.ANC ) + double.Parse( info.Return.BalancesHold.ANC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.ANC ); } else if( name.Equals( "CNC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.CNC ) + double.Parse( info.Return.BalancesHold.CNC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.CNC ); } else if( name.Equals( "CGB" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.CGB ) + double.Parse( info.Return.BalancesHold.CGB ); COINAvailable = double.Parse( info.Return.BalancesAvailable.CGB ); } else if( name.Equals( "PPC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.PPC ) + double.Parse( info.Return.BalancesHold.PPC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.PPC ); } else if( name.Equals( "SBC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.SBC ) + double.Parse( info.Return.BalancesHold.SBC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.SBC ); } else if( name.Equals( "NET" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.NET ) + double.Parse( info.Return.BalancesHold.NET ); COINAvailable = double.Parse( info.Return.BalancesAvailable.NET ); } else if( name.Equals( "QRK" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.QRK ) + double.Parse( info.Return.BalancesHold.QRK ); COINAvailable = double.Parse( info.Return.BalancesAvailable.QRK ); } else if( name.Equals( "ZET" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.ZET ) + double.Parse( info.Return.BalancesHold.ZET ); COINAvailable = double.Parse( info.Return.BalancesAvailable.ZET ); } else if( name.Equals( "YAC" ) ) { COINCurrent = double.Parse( info.Return.BalancesAvailable.YAC ) + double.Parse( info.Return.BalancesHold.YAC ); COINAvailable = double.Parse( info.Return.BalancesAvailable.YAC ); } }
private static void setCoinStart( Balances info, string name ) { btcStart = double.Parse( info.Return.BalancesAvailable.BTC ); ltcStart = double.Parse( info.Return.BalancesAvailable.LTC ); if( name.Equals( "DOGE" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.DOGE ); } else if( name.Equals( "YAC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.YAC ); } else if( name.Equals( "XPM" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.XPM ); } else if( name.Equals( "DGC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.DGC ); } else if( name.Equals( "MEC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.MEC ); } else if( name.Equals( "PXC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.PXC ); } else if( name.Equals( "GLD" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.GLD ); } else if( name.Equals( "WDC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.WDC ); } else if( name.Equals( "ANC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.ANC ); } else if( name.Equals( "CNC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.CNC ); } else if( name.Equals( "CGB" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.CGB ); } else if( name.Equals( "PPC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.PPC ); } else if( name.Equals( "SBC" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.SBC ); } else if( name.Equals( "NET" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.NET ); } else if( name.Equals( "QRK" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.QRK ); } else if( name.Equals( "ZET" ) ) { COINStart = double.Parse( info.Return.BalancesAvailable.ZET ); } }