Пример #1
0
        private void aboutProfilesPesetsComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            var pathToProfileFile =
                GlobalSettingsManager.GetFullPathToProfile(aboutProfilesPesetsComboBox.SelectedItem.ToString());

            SettingsManager.InitWithProfile(pathToProfileFile);

            BindUiSettings();
        }
Пример #2
0
        private void aboutProfilesSaveAsButton_Click(object sender, EventArgs e)
        {
            var newForm = new SaveProfileAsNameForm();

            if (newForm.ShowDialog() == DialogResult.OK)
            {
                ApplySettings();

                SettingsManager.Instance.SaveToFile(GlobalSettingsManager.GetFullPathToProfile(newForm.NameTextBox.Text));
                GlobalSettingsManager.Instance.LastUsedProfile = newForm.NameTextBox.Text;
                GlobalSettingsManager.Instance.Save();

                PopulateProfiles();
            }
        }