private void SaveFileTypes(OPMFlowLayoutPanel pnl)
        {
            foreach (Control ctl in pnl.Controls)
            {
                OPMCheckBox cb = ctl as OPMCheckBox;
                if (cb != null)
                {
                    string fileType     = cb.Text;
                    bool   isRegistered = SuiteRegistrationSupport.IsFileTypeRegistered(fileType);

                    if (cb.Checked != isRegistered)
                    {
                        if (cb.Checked)
                        {
                            SuiteRegistrationSupport.RegisterFileType(fileType, false);
                        }
                        else
                        {
                            SuiteRegistrationSupport.UnregisterFileType(fileType, false);
                        }
                    }
                }
            }
        }
        private void FillFileTypeAssociations()
        {
            pnlAudioFiles.Padding = new Padding(0);
            pnlVideoFiles.Padding = new Padding(0);
            pnlPlaylists.Padding  = new Padding(0);
            pnlAudioFiles.Margin  = new Padding(0);
            pnlVideoFiles.Margin  = new Padding(0);
            pnlPlaylists.Margin   = new Padding(0);

            foreach (string str in MediaRenderer.SupportedAudioTypes)
            {
                bool   isRegistered = SuiteRegistrationSupport.IsFileTypeRegistered(str);
                string type         = str.ToUpperInvariant();

                OPMCheckBox cb = CreateCheckBox(type, isRegistered);
                pnlAudioFiles.Controls.Add(cb);
            }

            foreach (string str in MediaRenderer.SupportedVideoTypes)
            {
                bool   isRegistered = SuiteRegistrationSupport.IsFileTypeRegistered(str);
                string type         = str.ToUpperInvariant();

                OPMCheckBox cb = CreateCheckBox(type, isRegistered);
                pnlVideoFiles.Controls.Add(cb);
            }

            foreach (string str in MediaRenderer.SupportedPlaylists)
            {
                bool   isRegistered = SuiteRegistrationSupport.IsFileTypeRegistered(str);
                string type         = str.ToUpperInvariant();

                OPMCheckBox cb = CreateCheckBox(type, isRegistered);
                pnlPlaylists.Controls.Add(cb);
            }
        }