private void RunUserSearches(UserCredential userCredential) { TransferHelper helper = new TransferHelper(userCredential); while (GetUserStatus(userCredential.Id) == "Loggedin Successfully") { try { foreach (var search in userCredential.PlayerSearchCriterias) { if (search.ABSetting == null && search.SettingId != null) { search.ABSetting = SettingDAL.GetSetting(search.SettingId); } if (!string.IsNullOrEmpty(search.ABSetting.BuyPrice)) { helper.SnipeCard(search); } if (search.ABSetting.SellTransferList) { helper.SellCards(); } } } catch (Exception) { continue; } } }
private void ConfigForm_Load(object sender, EventArgs e) { setting = SettingDAL.GetSetting(); lightcontrol = LightConrolDAL.GetLights(); LayoutIni(setting, lightcontrol); LLSDK.WinAPI.Window.SetWindowAlwaysTop(this.Handle); }
private void btn_editSetting_Click(object sender, EventArgs e) { if (grd_settingsList.SelectedRows.Count > 0) { object pkId = grd_settingsList.SelectedRows[0].Cells["PkId"].Value; ABSetting setting = SettingDAL.GetSetting(pkId); FillFormFormSetting(setting); } ShowSettingForm(); }
public MediaController(APlayer player) : base(player) { setting = SettingDAL.GetSetting(); lightcontrol = LightConrolDAL.GetLights(); }