Permalink
Browse files

Remove duplicate files.

  • Loading branch information...
Sebastiii committed Oct 9, 2012
1 parent 481fbf2 commit 4f67676ddc3360ce29364556dfb185704c0e8c9d

Large diffs are not rendered by default.

Oops, something went wrong.
Deleted file not rendered

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,125 +0,0 @@
-#region Copyright (C) 2005-2010 Team MediaPortal
-
-// Copyright (C) 2005-2010 Team MediaPortal
-// http://www.team-mediaportal.com
-//
-// MediaPortal is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 2 of the License, or
-// (at your option) any later version.
-//
-// MediaPortal is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with MediaPortal. If not, see <http://www.gnu.org/licenses/>.
-
-#endregion
-
-using System;
-using System.Collections.Generic;
-using System.Collections.Specialized;
-using System.Configuration;
-using MediaPortal.Configuration;
-using MediaPortal.Profile;
-using MediaPortal.UserInterface.Controls;
-using TvDatabase;
-
-namespace TvPlugin
-{
- public partial class RadioSetupForm : MPConfigForm
- {
- #region variables
-
- private bool _showAllChannelsGroup = true;
- private bool _rememberLastGroup = true;
- private string _rootGroup = "(none)";
- private bool _autoTurnOnRadio = false;
-
- #endregion
-
- #region Serialisation
-
- private void LoadSettings()
- {
- using (Settings xmlreader = new MPSettings())
- {
- _showAllChannelsGroup = xmlreader.GetValueAsBool("myradio", "showallchannelsgroup", true);
- _rememberLastGroup = xmlreader.GetValueAsBool("myradio", "rememberlastgroup", true);
- _rootGroup = xmlreader.GetValueAsString("myradio", "rootgroup", "(none)");
- _autoTurnOnRadio = xmlreader.GetValueAsBool("myradio", "autoturnonradio", false);
- }
- }
-
- private void SaveSettings()
- {
- using (Settings xmlreader = new MPSettings())
- {
- xmlreader.SetValueAsBool("myradio", "showallchannelsgroup", _showAllChannelsGroup);
- xmlreader.SetValueAsBool("myradio", "rememberlastgroup", _rememberLastGroup);
- xmlreader.SetValue("myradio", "rootgroup", _rootGroup);
- xmlreader.SetValueAsBool ("myradio", "autoturnonradio",_autoTurnOnRadio);
- }
- }
-
- #endregion
-
- public RadioSetupForm()
- {
- InitializeComponent();
- }
-
- private void RadioSetupForm_Load(object sender, EventArgs e)
- {
- LoadSettings();
-
- string gentle = String.Format(@"{0}\gentle.config", Config.GetFolder(Config.Dir.Config));
- NameValueCollection appSettings = ConfigurationManager.AppSettings;
- appSettings.Set("GentleConfigFile", gentle);
-
- cbTurnOnRadio.Checked = _autoTurnOnRadio;
- cbShowAllChannelsGroup.Checked = _showAllChannelsGroup;
- cbRememberLastGroup.Checked = _rememberLastGroup;
- comboBoxGroups.Items.Clear();
- comboBoxGroups.Items.Add("(none)");
- int selectedIdx = 0;
- IList<RadioChannelGroup> groups = RadioChannelGroup.ListAll();
- foreach (RadioChannelGroup group in groups)
- {
- int idx = comboBoxGroups.Items.Add(group.GroupName);
- if (group.GroupName == _rootGroup)
- {
- selectedIdx = idx;
- }
- }
- comboBoxGroups.SelectedIndex = selectedIdx;
- }
-
- private void cbShowAllChannelsGroup_Click(object sender, EventArgs e)
- {
- _showAllChannelsGroup = cbShowAllChannelsGroup.Checked;
- }
-
- private void cbRememberLastGroup_CheckedChanged(object sender, EventArgs e)
- {
- _rememberLastGroup = cbRememberLastGroup.Checked;
- }
-
- private void comboBoxGroups_SelectedIndexChanged(object sender, EventArgs e)
- {
- _rootGroup = comboBoxGroups.Text;
- }
-
- private void mpButtonOk_Click(object sender, EventArgs e)
- {
- SaveSettings();
- }
-
- private void cbTurnOnRadio_CheckedChanged(object sender, EventArgs e)
- {
- _autoTurnOnRadio = cbTurnOnRadio.Checked;
- }
- }
-}
Oops, something went wrong.

0 comments on commit 4f67676

Please sign in to comment.