コード例 #1
0
ファイル: SettingsForm.cs プロジェクト: Lbniese/PawsPremium
        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();
            }
        }
コード例 #2
0
ファイル: SettingsForm.cs プロジェクト: Lbniese/PawsPremium
        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();
            }
        }