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 MarkAllInGroup(bool check, OPMFlowLayoutPanel pnl) { foreach (Control ctl in pnl.Controls) { OPMCheckBox cb = ctl as OPMCheckBox; if (cb != null) { cb.Checked = check; } } }
private void InitializeComponent() { this.cbShellIntegration = new OPMedia.UI.Controls.OPMCheckBox(); this.label3 = new OPMedia.UI.Controls.OPMLabel(); this.cmbExplorerLaunchType = new OPMedia.UI.Controls.OPMComboBox(); this.btnSelAllAudio = new OPMedia.UI.Controls.OPMButton(); this.btnUnselAllAudio = new OPMedia.UI.Controls.OPMButton(); this.btnUnselAllVideo = new OPMedia.UI.Controls.OPMButton(); this.btnSelAllVideo = new OPMedia.UI.Controls.OPMButton(); this.btnUnselAllPlaylists = new OPMedia.UI.Controls.OPMButton(); this.btnSelAllPlaylists = new OPMedia.UI.Controls.OPMButton(); this.pnlButtons = new System.Windows.Forms.Panel(); this.hdrAudio = new OPMedia.UI.Controls.OPMHeaderLabel(); this.hdrPlaylists = new OPMedia.UI.Controls.OPMHeaderLabel(); this.hdrVideo = new OPMedia.UI.Controls.OPMHeaderLabel(); this.tableLayoutPanel1 = new OPMedia.UI.Controls.OPMTableLayoutPanel(); this.pnlPlaylists = new OPMedia.UI.Controls.OPMFlowLayoutPanel(); this.pnlVideoFiles = new OPMedia.UI.Controls.OPMFlowLayoutPanel(); this.pnlAudioFiles = new OPMedia.UI.Controls.OPMFlowLayoutPanel(); this.lblFileTypes = new OPMedia.UI.Controls.OPMLabel(); this.opmLayoutPanel1 = new OPMedia.UI.Controls.OPMTableLayoutPanel(); this.pnlButtons.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.opmLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // cbShellIntegration // this.cbShellIntegration.AutoSize = true; this.cbShellIntegration.Dock = System.Windows.Forms.DockStyle.Fill; this.cbShellIntegration.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cbShellIntegration.Location = new System.Drawing.Point(3, 3); this.cbShellIntegration.Name = "cbShellIntegration"; this.cbShellIntegration.OverrideForeColor = System.Drawing.Color.Empty; this.cbShellIntegration.Size = new System.Drawing.Size(567, 17); this.cbShellIntegration.TabIndex = 0; this.cbShellIntegration.Text = "TXT_SHELL_INTEGRATION"; // // label3 // this.label3.AutoSize = true; this.label3.Dock = System.Windows.Forms.DockStyle.Fill; this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.label3.Location = new System.Drawing.Point(0, 23); this.label3.Margin = new System.Windows.Forms.Padding(0); this.label3.Name = "label3"; this.label3.OverrideBackColor = System.Drawing.Color.Empty; this.label3.OverrideForeColor = System.Drawing.Color.Empty; this.label3.Size = new System.Drawing.Size(573, 13); this.label3.TabIndex = 1; this.label3.Text = "TXT_HANDLEEXPLORERLAUNCH"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // cmbExplorerLaunchType // this.cmbExplorerLaunchType.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; this.cmbExplorerLaunchType.FormattingEnabled = true; this.cmbExplorerLaunchType.Location = new System.Drawing.Point(3, 39); this.cmbExplorerLaunchType.Name = "cmbExplorerLaunchType"; this.cmbExplorerLaunchType.OverrideForeColor = System.Drawing.Color.Empty; this.cmbExplorerLaunchType.Size = new System.Drawing.Size(275, 23); this.cmbExplorerLaunchType.TabIndex = 3; // // btnSelAllAudio // this.btnSelAllAudio.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSelAllAudio.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelAllAudio.Location = new System.Drawing.Point(2, 2); this.btnSelAllAudio.Margin = new System.Windows.Forms.Padding(0); this.btnSelAllAudio.Name = "btnSelAllAudio"; this.btnSelAllAudio.OverrideBackColor = System.Drawing.Color.Empty; this.btnSelAllAudio.OverrideForeColor = System.Drawing.Color.Empty; this.btnSelAllAudio.Size = new System.Drawing.Size(135, 22); this.btnSelAllAudio.TabIndex = 0; this.btnSelAllAudio.Text = "TXT_SELECT_ALLAUDIO"; this.btnSelAllAudio.Click += new System.EventHandler(this.btnSelAllAudio_Click); // // btnUnselAllAudio // this.btnUnselAllAudio.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnUnselAllAudio.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUnselAllAudio.Location = new System.Drawing.Point(2, 26); this.btnUnselAllAudio.Margin = new System.Windows.Forms.Padding(0); this.btnUnselAllAudio.Name = "btnUnselAllAudio"; this.btnUnselAllAudio.OverrideBackColor = System.Drawing.Color.Empty; this.btnUnselAllAudio.OverrideForeColor = System.Drawing.Color.Empty; this.btnUnselAllAudio.Size = new System.Drawing.Size(135, 22); this.btnUnselAllAudio.TabIndex = 3; this.btnUnselAllAudio.Text = "TXT_UNSELECT_ALLAUDIO"; this.btnUnselAllAudio.Click += new System.EventHandler(this.btnUnselAllAudio_Click); // // btnUnselAllVideo // this.btnUnselAllVideo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnUnselAllVideo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUnselAllVideo.Location = new System.Drawing.Point(141, 26); this.btnUnselAllVideo.Margin = new System.Windows.Forms.Padding(0); this.btnUnselAllVideo.Name = "btnUnselAllVideo"; this.btnUnselAllVideo.OverrideBackColor = System.Drawing.Color.Empty; this.btnUnselAllVideo.OverrideForeColor = System.Drawing.Color.Empty; this.btnUnselAllVideo.Size = new System.Drawing.Size(135, 22); this.btnUnselAllVideo.TabIndex = 4; this.btnUnselAllVideo.Text = "TXT_UNSELECT_ALLVIDEO"; this.btnUnselAllVideo.Click += new System.EventHandler(this.btnUnselAllVideo_Click); // // btnSelAllVideo // this.btnSelAllVideo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSelAllVideo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelAllVideo.Location = new System.Drawing.Point(141, 2); this.btnSelAllVideo.Margin = new System.Windows.Forms.Padding(0); this.btnSelAllVideo.Name = "btnSelAllVideo"; this.btnSelAllVideo.OverrideBackColor = System.Drawing.Color.Empty; this.btnSelAllVideo.OverrideForeColor = System.Drawing.Color.Empty; this.btnSelAllVideo.Size = new System.Drawing.Size(135, 22); this.btnSelAllVideo.TabIndex = 1; this.btnSelAllVideo.Text = "TXT_SELECT_ALLVIDEO"; this.btnSelAllVideo.Click += new System.EventHandler(this.btnSelAllVideo_Click); // // btnUnselAllPlaylists // this.btnUnselAllPlaylists.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnUnselAllPlaylists.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnUnselAllPlaylists.Location = new System.Drawing.Point(279, 26); this.btnUnselAllPlaylists.Margin = new System.Windows.Forms.Padding(0); this.btnUnselAllPlaylists.Name = "btnUnselAllPlaylists"; this.btnUnselAllPlaylists.OverrideBackColor = System.Drawing.Color.Empty; this.btnUnselAllPlaylists.OverrideForeColor = System.Drawing.Color.Empty; this.btnUnselAllPlaylists.Size = new System.Drawing.Size(135, 22); this.btnUnselAllPlaylists.TabIndex = 5; this.btnUnselAllPlaylists.Text = "TXT_UNSELECT_ALLPLAYLISTS"; this.btnUnselAllPlaylists.Click += new System.EventHandler(this.btnUnselAllPlaylists_Click); // // btnSelAllPlaylists // this.btnSelAllPlaylists.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSelAllPlaylists.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnSelAllPlaylists.Location = new System.Drawing.Point(279, 2); this.btnSelAllPlaylists.Margin = new System.Windows.Forms.Padding(0); this.btnSelAllPlaylists.Name = "btnSelAllPlaylists"; this.btnSelAllPlaylists.OverrideBackColor = System.Drawing.Color.Empty; this.btnSelAllPlaylists.OverrideForeColor = System.Drawing.Color.Empty; this.btnSelAllPlaylists.Size = new System.Drawing.Size(135, 22); this.btnSelAllPlaylists.TabIndex = 2; this.btnSelAllPlaylists.Text = "TXT_SELECT_ALLPLAYLISTS"; this.btnSelAllPlaylists.Click += new System.EventHandler(this.btnSelAllPlaylists_Click); // // pnlButtons // this.pnlButtons.Controls.Add(this.btnSelAllAudio); this.pnlButtons.Controls.Add(this.btnUnselAllPlaylists); this.pnlButtons.Controls.Add(this.btnUnselAllAudio); this.pnlButtons.Controls.Add(this.btnSelAllPlaylists); this.pnlButtons.Controls.Add(this.btnSelAllVideo); this.pnlButtons.Controls.Add(this.btnUnselAllVideo); this.pnlButtons.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlButtons.Location = new System.Drawing.Point(3, 250); this.pnlButtons.Name = "pnlButtons"; this.pnlButtons.Size = new System.Drawing.Size(567, 50); this.pnlButtons.TabIndex = 6; // // hdrAudio // this.hdrAudio.AutoSize = true; this.hdrAudio.Dock = System.Windows.Forms.DockStyle.Fill; this.hdrAudio.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.hdrAudio.Image = global::OPMedia.UI.ProTONE.Properties.Resources.btnCfgAudio; this.hdrAudio.Location = new System.Drawing.Point(0, 0); this.hdrAudio.Margin = new System.Windows.Forms.Padding(0); this.hdrAudio.MaximumSize = new System.Drawing.Size(4000, 20); this.hdrAudio.MinimumSize = new System.Drawing.Size(4, 20); this.hdrAudio.Name = "hdrAudio"; this.hdrAudio.Size = new System.Drawing.Size(567, 20); this.hdrAudio.TabIndex = 2; this.hdrAudio.Text = "TXT_AUDIO_FILES"; this.hdrAudio.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // hdrPlaylists // this.hdrPlaylists.AutoSize = true; this.hdrPlaylists.Dock = System.Windows.Forms.DockStyle.Fill; this.hdrPlaylists.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.hdrPlaylists.Location = new System.Drawing.Point(0, 46); this.hdrPlaylists.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); this.hdrPlaylists.MaximumSize = new System.Drawing.Size(4000, 20); this.hdrPlaylists.MinimumSize = new System.Drawing.Size(4, 20); this.hdrPlaylists.Name = "hdrPlaylists"; this.hdrPlaylists.Size = new System.Drawing.Size(567, 20); this.hdrPlaylists.TabIndex = 2; this.hdrPlaylists.Text = "TXT_PLAYLISTS"; this.hdrPlaylists.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // hdrVideo // this.hdrVideo.AutoSize = true; this.hdrVideo.Dock = System.Windows.Forms.DockStyle.Fill; this.hdrVideo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.hdrVideo.Location = new System.Drawing.Point(0, 23); this.hdrVideo.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); this.hdrVideo.MaximumSize = new System.Drawing.Size(4000, 20); this.hdrVideo.MinimumSize = new System.Drawing.Size(4, 20); this.hdrVideo.Name = "hdrVideo"; this.hdrVideo.Size = new System.Drawing.Size(567, 20); this.hdrVideo.TabIndex = 1; this.hdrVideo.Text = "TXT_VIDEO_FILES"; this.hdrVideo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.Controls.Add(this.hdrAudio, 0, 0); this.tableLayoutPanel1.Controls.Add(this.pnlPlaylists, 0, 5); this.tableLayoutPanel1.Controls.Add(this.hdrPlaylists, 0, 4); this.tableLayoutPanel1.Controls.Add(this.pnlVideoFiles, 0, 3); this.tableLayoutPanel1.Controls.Add(this.hdrVideo, 0, 2); this.tableLayoutPanel1.Controls.Add(this.pnlAudioFiles, 0, 1); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 81); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.OverrideBackColor = System.Drawing.Color.Empty; this.tableLayoutPanel1.RowCount = 6; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.Size = new System.Drawing.Size(567, 163); this.tableLayoutPanel1.TabIndex = 5; // // pnlPlaylists // this.pnlPlaylists.AutoSize = true; this.pnlPlaylists.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.pnlPlaylists.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlPlaylists.Location = new System.Drawing.Point(0, 66); this.pnlPlaylists.Margin = new System.Windows.Forms.Padding(0); this.pnlPlaylists.Name = "pnlPlaylists"; this.pnlPlaylists.OverrideBackColor = System.Drawing.Color.Empty; this.pnlPlaylists.Size = new System.Drawing.Size(567, 97); this.pnlPlaylists.TabIndex = 4; // // pnlVideoFiles // this.pnlVideoFiles.AutoSize = true; this.pnlVideoFiles.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.pnlVideoFiles.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlVideoFiles.Location = new System.Drawing.Point(0, 43); this.pnlVideoFiles.Margin = new System.Windows.Forms.Padding(0); this.pnlVideoFiles.Name = "pnlVideoFiles"; this.pnlVideoFiles.OverrideBackColor = System.Drawing.Color.Empty; this.pnlVideoFiles.Size = new System.Drawing.Size(567, 1); this.pnlVideoFiles.TabIndex = 3; // // pnlAudioFiles // this.pnlAudioFiles.AutoSize = true; this.pnlAudioFiles.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.pnlAudioFiles.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlAudioFiles.Location = new System.Drawing.Point(0, 20); this.pnlAudioFiles.Margin = new System.Windows.Forms.Padding(0); this.pnlAudioFiles.Name = "pnlAudioFiles"; this.pnlAudioFiles.OverrideBackColor = System.Drawing.Color.Empty; this.pnlAudioFiles.Size = new System.Drawing.Size(567, 1); this.pnlAudioFiles.TabIndex = 2; // // lblFileTypes // this.lblFileTypes.AutoSize = true; this.lblFileTypes.Dock = System.Windows.Forms.DockStyle.Fill; this.lblFileTypes.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.lblFileTypes.Location = new System.Drawing.Point(0, 65); this.lblFileTypes.Margin = new System.Windows.Forms.Padding(0); this.lblFileTypes.Name = "lblFileTypes"; this.lblFileTypes.OverrideBackColor = System.Drawing.Color.Empty; this.lblFileTypes.OverrideForeColor = System.Drawing.Color.Empty; this.lblFileTypes.Size = new System.Drawing.Size(573, 13); this.lblFileTypes.TabIndex = 4; this.lblFileTypes.Text = "TXT_S_FILETYPES_ASSOCIATIONS"; this.lblFileTypes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // opmLayoutPanel1 // this.opmLayoutPanel1.ColumnCount = 1; this.opmLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.opmLayoutPanel1.Controls.Add(this.cbShellIntegration, 0, 0); this.opmLayoutPanel1.Controls.Add(this.label3, 0, 1); this.opmLayoutPanel1.Controls.Add(this.cmbExplorerLaunchType, 0, 2); this.opmLayoutPanel1.Controls.Add(this.lblFileTypes, 0, 3); this.opmLayoutPanel1.Controls.Add(this.tableLayoutPanel1, 0, 4); this.opmLayoutPanel1.Controls.Add(this.pnlButtons, 0, 5); this.opmLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.opmLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.opmLayoutPanel1.Name = "opmLayoutPanel1"; this.opmLayoutPanel1.OverrideBackColor = System.Drawing.Color.Empty; this.opmLayoutPanel1.RowCount = 6; this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.opmLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.opmLayoutPanel1.Size = new System.Drawing.Size(573, 303); this.opmLayoutPanel1.TabIndex = 0; // // FileTypesPanel // this.Controls.Add(this.opmLayoutPanel1); this.Name = "FileTypesPanel"; this.Size = new System.Drawing.Size(573, 303); this.pnlButtons.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.opmLayoutPanel1.ResumeLayout(false); this.opmLayoutPanel1.PerformLayout(); this.ResumeLayout(false); }