public EditGa( JDCAPI.GAFlags Flags) { InitializeComponent(); }
Bet ToBet(JDCAPI.Result curBet) { Bet tmp = new Bet(); tmp.Amount = decimal.Parse(curBet.bet, System.Globalization.CultureInfo.InvariantCulture); tmp.date = jdInstance.ToDateTime2( curBet.date.ToString()); tmp.Id = (long)curBet.betid; tmp.Profit = decimal.Parse(curBet.this_profit, System.Globalization.CultureInfo.InvariantCulture); tmp.Roll = (decimal)curBet.lucky/10000m; tmp.high = curBet.high; tmp.Chance = decimal.Parse(curBet.chance, System.Globalization.CultureInfo.InvariantCulture); tmp.nonce = curBet.nonce; tmp.serverhash = Instance.shash; tmp.clientseed = Instance.seed; tmp.uid = int.Parse(Instance.uid); return tmp; }