Example #1
0
        private void fillCores(string system)
        {
            listBoxCore.BeginUpdate();
            listBoxCore.Items.Clear();
            listBoxCore.Items.Add(Resources.Unassigned);
            var collection = string.IsNullOrEmpty(system) ? CoreCollection.Cores : CoreCollection.GetCoresFromSystem(system);

            if (collection != null)
            {
                foreach (var core in collection.OrderBy(c => c.Name))
                {
                    listBoxCore.Items.Add(core);
                }
            }
            listBoxCore.Enabled = true;
            listBoxCore.EndUpdate();
        }
Example #2
0
        private void fillCores(string system)
        {
            listBoxCore.BeginUpdate();
            listBoxCore.Items.Clear();
            var collection = string.IsNullOrEmpty(system) ? CoreCollection.Cores : CoreCollection.GetCoresFromSystem(system);

            //var collection = firstSelected == null ? CoreCollection.Cores : CoreCollection.GetCoresFromExtension(firstSelected.SubItems[1].Text.ToLower()).ToArray();
            if (collection != null)
            {
                foreach (var core in collection)
                {
                    listBoxCore.Items.Add(core);
                }
            }
            listBoxCore.Enabled = true;
            listBoxCore.EndUpdate();
        }