예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 private void ConfigForm_Load(object sender, EventArgs e)
 {
     setting      = SettingDAL.GetSetting();
     lightcontrol = LightConrolDAL.GetLights();
     LayoutIni(setting, lightcontrol);
     LLSDK.WinAPI.Window.SetWindowAlwaysTop(this.Handle);
 }
예제 #3
0
        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();
        }
예제 #4
0
 public MediaController(APlayer player) : base(player)
 {
     setting      = SettingDAL.GetSetting();
     lightcontrol = LightConrolDAL.GetLights();
 }