Example #1
0
        private void comboBoxPlaylist_SelectedIndexChanged(object sender, EventArgs e)
        {
            var comboBoxPlaylistText = (sender as ComboBox).Text;

            SettingsHelper.AddOrUpdateAppSetting($"{nameof(SettingsConfiguration)}:{nameof(SettingsConfiguration.PlaylistDefault)}", comboBoxPlaylistText);
            this.settings.SettingsConfiguration.PlaylistDefault = comboBoxPlaylistText;
        }
Example #2
0
        private void checkBoxPlaylist_CheckedChanged(object sender, EventArgs e)
        {
            var checkBoxPlaylistChecked = (sender as CheckBox).Checked;

            comboBoxPlaylist.Enabled = checkBoxPlaylistChecked;
            SettingsHelper.AddOrUpdateAppSetting($"{nameof(SettingsConfiguration)}:{nameof(SettingsConfiguration.PlaylistChecked)}", checkBoxPlaylistChecked);
            this.settings.SettingsConfiguration.PlaylistChecked = checkBoxPlaylistChecked;
        }
Example #3
0
 private void SetTextBoxBrowseFolderText(string folder)
 {
     if (!string.IsNullOrWhiteSpace(folder))
     {
         textBoxBrowseFolder.Text = folder;
         SettingsHelper.AddOrUpdateAppSetting($"{nameof(SettingsConfiguration)}:{nameof(SettingsConfiguration.FolderDefault)}", folder);
         this.settings.SettingsConfiguration.FolderDefault = folder;
     }
 }