Example #1
0
        /// <summary>
        ///     Retrieves the available profiles for the current character, and populates the profiles dropdown control.
        /// </summary>
        private void PopulateProfiles()
        {
            aboutProfilesPesetsComboBox.Items.Clear();

            foreach (var file in GlobalSettingsManager.GetCharacterProfileFiles())
            {
                aboutProfilesPesetsComboBox.Items.Add(Path.GetFileNameWithoutExtension(file));
            }

            aboutProfilesPesetsComboBox.SelectedItem = GlobalSettingsManager.Instance.LastUsedProfile;
        }