private void Init() { if (!this.IsHandleCreated) { this.CreateHandle(); } //init docking dockManager1.ForceInitialize(); dockManager1.DockingOptions.HideImmediatelyOnAutoHide = true; ProcessorConfigs = new ProcessorConfigs(); folderName = Path.Combine(Application.StartupPath, "AccountData"); FileName = Path.Combine(folderName, "PinaIsnAccounts.xml"); InitProcessConfig(); Thread scanLogThread = new Thread(DoShowScanLog); scanLogThread.Start(); Thread betLogThread = new Thread(DoShowBetLog); betLogThread.Start(); // _manageService.PingBet(SelfInfo.Username, SelfInfo.MacAddress, 10); //timerPing = new System.Timers.Timer(60000); //timerPing.Elapsed += PingManage; //timerPing.Start(); }
private void Init() { if (!this.IsHandleCreated) { this.CreateHandle(); } ProcessorConfigs = new ProcessorConfigs(); folderName = Path.Combine(Application.StartupPath, "AccountData"); FileName = Path.Combine(folderName, "PinaSboAccounts.xml"); InitProcessConfig(); Thread scanLogThread = new Thread(DoShowScanLog); scanLogThread.Start(); Thread betLogThread = new Thread(DoShowBetLog); betLogThread.Start(); _manageService.PingBet(SelfInfo.Username, SelfInfo.MacAddress, 10); timerPing = new System.Timers.Timer(60000); timerPing.Elapsed += PingManage; timerPing.Start(); }
private void Init() { if (!this.IsHandleCreated) { this.CreateHandle(); } string proxyIbetEp = Convert.ToString(ConfigurationManager.AppSettings["PROXYIBET"]); if (string.IsNullOrEmpty(proxyIbetEp)) { ClientData.ProxyIbet = false; } else { ClientData.ProxyIbet = true; ClientData.ProxyIbetEndpoint = string.Concat("net.tcp://", proxyIbetEp, ":9998/bcwinsupservice"); } ProcessorConfigs = new ProcessorConfigs(); folderName = Path.Combine(Application.StartupPath, "AccountData"); FileName = Path.Combine(folderName, "IbetSboAccounts.xml"); InitProcessConfig(); Thread scanLogThread = new Thread(DoShowScanLog); scanLogThread.Start(); Thread betLogThread = new Thread(DoShowBetLog); betLogThread.Start(); _manageService.PingBet(SelfInfo.Username, SelfInfo.MacAddress, 10); timerPing = new System.Timers.Timer(60000 * 2); timerPing.Elapsed += PingManage; timerPing.Start(); }