void BeginPopulateAllDropsListView(EventListBattles dungeon) { if (dungeon != null) { DbOpFilterDrops op = new DbOpFilterDrops(FFRKProxy.Instance.Database); op.Dungeons.AddValue(dungeon.DungeonSession.DungeonId); op.OnRequestComplete += RequestDungeonDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(op); } }
void BeginPopulateAllDropsListView(EventBattleInitiated battle) { if (battle != null) { DbOpFilterDrops op = new DbOpFilterDrops(FFRKProxy.Instance.Database); op.Battles.AddValue(battle.Battle.BattleId); op.OnRequestComplete += RequestBattleDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(op); } else { listViewPrevDrops.VirtualListSize = 0; mAllPrevItems.Clear(); mFilteredPrevItems.Collection.Clear(); } }
void BeginPopulateAllDropsListView(EventListBattles dungeon) { if (dungeon != null) { DbOpFilterDrops op = new DbOpFilterDrops(FFRKProxy.Instance.Database); op.Dungeons.AddValue(dungeon.DungeonSession.DungeonId); op.OnRequestComplete += RequestDungeonDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(op); } else { listViewAllDrops.VirtualListSize = 0; mAllItems.Clear(); mFilteredItems.Collection.Clear(); } }
private void DoSearch() { DbOpFilterDrops request = new DbOpFilterDrops(FFRKProxy.Instance.Database); request.Name.Value = textBoxNameFilter.Text; foreach (RealmSynergy.SynergyValue value in listBoxRealmSynergy.SelectedItems) request.Synergies.AddValue(value); if (listBoxWorld.Enabled) { foreach (WorldListItem world in listBoxWorld.SelectedItems) request.Worlds.AddValue(world.WorldId); } if (listBoxBattle.Enabled) { foreach (BattleListItem battle in listBoxBattle.SelectedItems) request.Battles.AddValue(battle.BattleId); } if (listBoxDungeon.Enabled) { foreach (DungeonListItem dungeon in listBoxDungeon.SelectedItems) request.Dungeons.AddValue(dungeon.DungeonId); } foreach (SchemaConstants.Rarity rarity in listBoxRarity.SelectedItems) request.Rarities.AddValue(rarity); request.OnRequestComplete += DbOpFilterDrops_OnRequestComplete; FFRKProxy.Instance.Database.BeginExecuteRequest(request); }