コード例 #1
0
        public MediaScreensOptionsPage()
        {
            InitializeComponent();

            chkShowPlaylist.Checked       = ProTONEConfig.MediaScreenActive(MediaScreen.Playlist);
            chkShowTrackInfo.Checked      = ProTONEConfig.MediaScreenActive(MediaScreen.TrackInfo);
            chkShowSignalAnalisys.Checked = ProTONEConfig.MediaScreenActive(MediaScreen.SignalAnalisys);
            chkShowBookmarkInfo.Checked   = ProTONEConfig.MediaScreenActive(MediaScreen.BookmarkInfo);

            chkVuMeter.Checked      = ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.VUMeter);
            chkWaveform.Checked     = ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.Waveform);
            chkSpectrogram.Checked  = ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.Spectrogram);
            chkWCFInterface.Checked = ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.WCFInterface);

            this.chkShowPlaylist.CheckedChanged       += new System.EventHandler(this.OnSettingsChanged);
            this.chkShowTrackInfo.CheckedChanged      += new System.EventHandler(this.OnSettingsChanged);
            this.chkShowSignalAnalisys.CheckedChanged += new System.EventHandler(this.OnSettingsChanged);
            this.chkShowBookmarkInfo.CheckedChanged   += new System.EventHandler(this.OnSettingsChanged);

            this.chkVuMeter.CheckedChanged      += new System.EventHandler(this.OnSettingsChanged);
            this.chkWaveform.CheckedChanged     += new System.EventHandler(this.OnSettingsChanged);
            this.chkSpectrogram.CheckedChanged  += new System.EventHandler(this.OnSettingsChanged);
            this.chkWCFInterface.CheckedChanged += new System.EventHandler(this.OnSettingsChanged);
        }