LoadSettings() private method

private LoadSettings ( ) : void
return void
Example #1
0
        public override void OnSectionActivated()
        {
            Log.Info("ArgusTV.Recorder.MediaPortalTvServer: Configuration activated");

            _plugin.LoadSettings();
            _serverTextBox.Text      = _plugin.ServerSettings.ServerName;
            _portNumericUpDown.Value = _plugin.ServerSettings.Port;

            _pluginTcpNumericUpDown.Value = _plugin.RecorderTunerTcpPort;

            _restartOnResumeCheckBox.Checked = _plugin.RestartTvServerOnResume;

            _syncTve3EpgcheckBox.Checked = _plugin.EpgSyncOn;
            _syncTve3EpgcheckBox_CheckedChanged(this, EventArgs.Empty);

            if (_plugin.EpgSyncAutoCreateChannels)
            {
                _epgAutoCreateChannelsDvbRadioButton.Checked = true;
            }
            else if (_plugin.EpgSyncAutoCreateChannelsWithGroup)
            {
                _epgAutoCreateChannelsWithGroupRadioButton.Checked = true;
            }
            else
            {
                _epgOnlyLinkedChannelsRadioButton.Checked = true;
            }

            ConnectToArgusTV();

            base.OnSectionActivated();
        }