private void _dataService_AllowRunCompleted(object sender, AllowRunCompletedEventArgs e) { if (e.Result) { this.Start(); this._dataService.StartTerminalAsync(this._currentUserID, this.Text); //this._ibetEngine.UpdateDataInterval = (int)this.txtIBETUpdateInterval.Value * 1000; //this._sbobetEngine.UpdateDataInterval = (int)this.txtSBOBETUpdateInterval.Value * 1000; } else { this.ShowWarningDialog("Your logged in account is not permitted to start the current betting pair account. \nPlease contact with Administrators."); } }
private void _dataService_AllowRunCompleted(object sender, AllowRunCompletedEventArgs e) { if (e.Result) { #if DEBUG //Utilities.WriteLog.Write("+ Response from Server:u're allowed to run this program"); #endif this.Start(); //this._dataService.StartTerminalAsync(this._currentUserID, this.Text); this._ibetEngine.UpdateDataInterval = (int)this.txtIBETUpdateInterval.Value * 1000; this._3in1Engine.UpdateDataInterval = (int)this.txt3IN1BETUpdateInterval.Value * 1000; } else { this.ShowWarningDialog("Your logged in account is not permitted to start the current betting pair account. \nPlease contact with Administrators."); } }