public BotsManager(SbotControl.DataManager dm) { //ManagerOnline = true; //GetStartedIBots(); BotLogs = new List<Core.BotLogUnit>(); _queAutoStart = new Queue<SBot>(); tmrSearch = new System.Threading.Timer(_ => tmrSearch_Tick(), null, System.Threading.Timeout.Infinite, System.Threading.Timeout.Infinite); dm.AccountListChanged += Dm_AccountListChanged; tmrAutoStart = new System.Threading.Timer(_ => tmrAutoStart_Tick(), null, 3 * 1000, 3 * 1000); }
public AddAccountFrm(SbotControl.Account account) { InitializeComponent(); _account = account; _src_charname= _account.charName; _src_active = _account.Start; _src_group = _account.Group; _src_botpath = _account.BotFilePath; _src_connectionTimeout = _account.ConnectionTimeout; tbCharName.DataBindings.Add("EditValue", _account, "CharName"); beBotPath.DataBindings.Add("EditValue", _account, "BotFilePath"); tbGroup.DataBindings.Add("EditValue", _account, "Group"); ceActive.DataBindings.Add("EditValue", _account, "Start"); seConnectionTimeout.DataBindings.Add("EditValue", _account, "ConnectionTimeout"); LayoutInti(); }