Exemplo n.º 1
0
        private void fFilteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            uxFilterInput filterInput = new uxFilterInput();

            if (filterInput.ShowDialog() == DialogResult.OK)
            {
                foreach (var i in ItemDataLists.AllItems)
                {
                    if (i.Value.ValueRatio >= filterInput.Ratio)
                    {
                        LootItem lootItem = new LootItem((ushort)i.Value.Id, filterInput.ContainerNumber, i.Value.Name);
                        listBoxItems.Items.Add(lootItem);
                        _lootItems.Add(lootItem);
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void fFilteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            uxFilterInput filterInput = new uxFilterInput();

            if (filterInput.ShowDialog() == DialogResult.OK)
            {
                foreach (var i in ItemDataLists.AllItems)
                {
                    if (i.Value.ValueRatio >= filterInput.Ratio)
                    {
                        LootItem lootItem = new LootItem((ushort) i.Value.Id, filterInput.ContainerNumber, i.Value.Name);
                        listBoxItems.Items.Add(lootItem);
                        _lootItems.Add(lootItem);
                    }
                }
            }
        }