Esempio n. 1
0
        public Ark_Launch()
        {
            InitializeComponent();
            profiles = dummyBox.Items;
            int tmp = 0;

            profiles.AddRange(API.LoadProfile(ref tmp));
            foreach (string item in profiles)
            {
                profileSelector.Items.Add(item);
            }
            profileSelector.SelectedIndex = tmp;
        }
Esempio n. 2
0
 public static void AddRange <T>(this System.Windows.Forms.ListBox.ObjectCollection objectCollection, IEnumerable <T> collection)
 => objectCollection.AddRange(collection.Select(x => x as object).ToArray());