public TerminalFormIBET3IN1(MainForm mainForm, string currentUserID) { this.InitializeComponent(); this._mainForm = mainForm; this._dataService = new App.admin.DataServiceSoapClient(); this._dataService.AllowRunCompleted += new EventHandler<AllowRunCompletedEventArgs>(this._dataService_AllowRunCompleted); this._currentUserID = currentUserID; this._forceRefreshTimer = new System.Windows.Forms.Timer(); this._forceRefreshTimer.Interval = 180000; this._forceRefreshTimer.Tick += new System.EventHandler(this._forceRefreshTimer_Tick); this._creditRefreshTimer = new System.Windows.Forms.Timer(); this._creditRefreshTimer.Interval = 180000; this._creditRefreshTimer.Tick += new System.EventHandler(this._creditRefreshTimer_Tick); //this._matchesRefreshTimer = new System.Windows.Forms.Timer(); //this._matchesRefreshTimer.Interval = 60000; //this._matchesRefreshTimer.Tick += new System.EventHandler(this._matchesRefreshTimer_Tick); this._oddTransactionHistory = new System.Collections.Generic.Dictionary<string, System.DateTime>(); this._listTransaction = new System.Collections.Generic.List<TransactionDTO>(); //this.web3IN1BET.Url = new System.Uri("http://" + _mainForm._list3in1Host[_mainForm.numTerminal] + ".3in1bet.com", System.UriKind.Absolute); //TransactionDTO tranTest = new TransactionDTO(); //tranTest.AwayTeamName = "test"; tranTest.HomeTeamName = "test"; //this._listTransaction.Add(tranTest); this.grdTransaction.DataSource = this._listTransaction; this._listSameMatch = new System.Collections.Generic.List<MatchDTO>(); this.grdSameMatch.DataSource = this._listSameMatch; }
public TerminalFormIBETSBO(MainForm mainForm, string currentUserID, int formCount) { this.InitializeComponent(); List<BetAgentConfig> agents = ConfigurationInstance<BetEngineConfiguration>.GetConfig().Agents; this.config = agents[formCount]; //list.Add("55640842"); //Thread thread = new Thread((ThreadStart)(() => //{ // this.engineManager = new BetEngineManager(); // List<string> list = new List<string>(); // this.engineManager.Start(list); //})); //thread.Start(); this.scantype = new ScanningType(); this._ibetMatchs = new Dictionary<string, IbetMatch>(); this._ibetMatchsSnapShot = new Dictionary<string, IbetMatch>(); this._sboMatchs = new Dictionary<string, SboMatch>(); this._mainForm = mainForm; this._dataService = new App.admin.DataServiceSoapClient(); this._dataService.AllowRunCompleted += new System.EventHandler<iBet.App.admin.AllowRunCompletedEventArgs>(this._dataService_AllowRunCompleted); this._currentUserID = currentUserID; this._forceRefreshTimer = new System.Windows.Forms.Timer(); this._forceRefreshTimer.Interval = 180000; this._forceRefreshTimer.Tick += new System.EventHandler(this._forceRefreshTimer_Tick); this._creditRefreshTimer = new System.Windows.Forms.Timer(); this._creditRefreshTimer.Interval = 180000; this._creditRefreshTimer.Tick += new System.EventHandler(this._creditRefreshTimer_Tick); this._matchesRefreshTimer = new System.Windows.Forms.Timer(); this._matchesRefreshTimer.Interval = 60000; this._matchesRefreshTimer.Tick += new System.EventHandler(this._matchesRefreshTimer_Tick); this._oddTransactionHistory = new System.Collections.Generic.Dictionary<string, string>(); this._listTransaction = new System.Collections.Generic.List<TransactionDTO>(); this.grdTransaction.DataSource = this._listTransaction; this._listSameMatch = new System.Collections.Generic.List<MatchDTO>(); this.grdSameMatch.DataSource = this._listSameMatch; this.listBA = new List<BetAnalyse>(); this.bl = new List<Bet>(); this.girdBetList1.DataSource = this.bl; //MatchDTO match = new MatchDTO(); //match.HomeTeamName = "Test Home Team"; //match.AwayTeamName = "Another Away Team"; //match.HomeScore = "0"; //match.AwayScore = "0"; //match.Minute = 28; //match.Half = 1; //match.KickOffTime = "20/10 13:41 Live!"; //match.League = new LeagueDTO(); //match.League.Name = "Ein Element mit dem gleichen Schlüssel".ToUpper(); //MatchDTO match2 = new MatchDTO(); //match2.HomeTeamName = "Test Home Team"; //match2.AwayTeamName = "Another Away Team"; //match2.HomeScore = "0"; //match2.AwayScore = "0"; //match2.Minute = 28; //match2.Half = 1; //match2.KickOffTime = "20/10 13:43"; //match2.League = new LeagueDTO(); //match2.League.Name = "Ein Element mit dem gleichen Schlüssel".ToUpper(); //this._listSameMatch.Add(match); this._listSameMatch.Add(match); //this._listSameMatch.Add(match); this._listSameMatch.Add(match); //this._listSameMatch.Add(match); this._listSameMatch.Add(match); //this._listSameMatch.Add(match); this._listSameMatch.Add(match); //this._listSameMatch.Add(match2); this._listSameMatch.Add(match2); this._listSameMatch.Add(match2); //this._listSameMatch.Add(match2); this._listSameMatch.Add(match2); this._listSameMatch.Add(match2); //this._listSameMatch.Add(match2); this._listSameMatch.Add(match2); //this.gridView1.RefreshData(); }
public FollowSub(MainForm mainForm, string currentUserID) { this.InitializeComponent(); this._mainForm = mainForm; this._dataService = new App.admin.DataServiceSoapClient(); this._dataService.AllowRunCompleted += new EventHandler<AllowRunCompletedEventArgs>(this._dataService_AllowRunCompleted); this._currentUserID = currentUserID; this._forceRefreshTimer = new System.Windows.Forms.Timer(); this._forceRefreshTimer.Interval = 180000; this._forceRefreshTimer.Tick += new System.EventHandler(this._forceRefreshTimer_Tick); this._creditRefreshTimer = new System.Windows.Forms.Timer(); this._creditRefreshTimer.Interval = 180000; this._creditRefreshTimer.Tick += new System.EventHandler(this._creditRefreshTimer_Tick); //this._OldBetListHistory = new Dictionary<string, DateTime>(); //this._oddTransactionHistory = new System.Collections.Generic.Dictionary<string, System.DateTime>(); this._listTransaction = new System.Collections.Generic.List<TransactionDTO>(); this._listWaitingTransaction = new System.Collections.Generic.List<TransactionDTO>(); this.grdTransaction.DataSource = this._listTransaction; this._listIBETMatchNow = new List<MatchDTO>(); this.grdSameMatch.DataSource = this._listIBETMatchNow; this._listIBETMatchNonLiveNow = new List<MatchDTO>(); this.gridNonLiveMatch.DataSource = this._listIBETMatchNonLiveNow; this._lastAccountInSubOutStanding = new List<AccountDTO>(); this._listDoneBetInSub = new List<BetDTO>(); this.grdBetList.DataSource = this._listDoneBetInSub; //this.grdBetList.DataSource = this._ }