Exemplo n.º 1
0
        private void BtnAddIgnored_Click(object sender, EventArgs e)
        {
            MiscMultiItemSelect NeededSelect = new MiscMultiItemSelect();

            NeededSelect.Display     = 1;
            NeededSelect.ListContent = CheckerInstance.Logic.Where(x => !x.IsFake && !string.IsNullOrWhiteSpace(x.LocationName)).ToList();
            if (NeededSelect.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            foreach (var i in NeededSelect.SelectedItems)
            {
                LBIgnoredChecks.Items.Add(new LogicObjects.ListItem {
                    DisplayName = i.LocationName ?? i.DictionaryName, PathID = i.ID
                });
            }
            BtnCheckSeed_Click(sender, e);
        }
Exemplo n.º 2
0
        private void BtnAddNeeded_Click(object sender, EventArgs e)
        {
            MiscMultiItemSelect NeededSelect = new MiscMultiItemSelect();

            NeededSelect.UsedInstance = CheckerInstance;
            NeededSelect.Display      = 2;
            NeededSelect.ListContent  = CheckerInstance.Logic;

            if (NeededSelect.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            foreach (var i in NeededSelect.SelectedItems)
            {
                LBNeededItems.Items.Add(new LogicObjects.ListItem {
                    DisplayName = i.ItemName ?? i.DictionaryName, PathID = i.ID
                });
            }
            BtnCheckSeed_Click(sender, e);
        }