diff --git a/main/Classes/Category.cs b/main/Classes/Category.cs index 4dc92b9..3b4c75b 100644 --- a/main/Classes/Category.cs +++ b/main/Classes/Category.cs @@ -214,7 +214,11 @@ public Image loadImageCache(ProgramShortcut shortcutObject) if (System.IO.File.Exists(programPath) || Directory.Exists(programPath) || shortcutObject.isWindowsApp) { - try + if (shortcutObject.specificLogo != null) + { + return new Bitmap(shortcutObject.specificLogo); + } + try { // Try to construct the path like if it existed // If it does, directly load it into memory and return it @@ -237,8 +241,7 @@ public Image loadImageCache(ProgramShortcut shortcutObject) String path = MainPath.path + @"\config\" + this.Name + @"\Icons\" + Path.GetFileNameWithoutExtension(programPath) + (Directory.Exists(programPath) ? "_FolderObjTSKGRoup.png" : ".png"); Image finalImage; - - if (Path.GetExtension(programPath).ToLower() == ".lnk") + if (Path.GetExtension(programPath).ToLower() == ".lnk") { finalImage = Forms.frmGroup.handleLnkExt(programPath); } diff --git a/main/Classes/ProgramShortcut.cs b/main/Classes/ProgramShortcut.cs index 8df8ccb..b302268 100644 --- a/main/Classes/ProgramShortcut.cs +++ b/main/Classes/ProgramShortcut.cs @@ -1,10 +1,12 @@ -namespace client.Classes +using System.Drawing; + +namespace client.Classes { public class ProgramShortcut { public string FilePath { get; set; } public bool isWindowsApp { get; set; } - + public string specificLogo { get; set; } public string name { get; set; } = ""; public string Arguments = ""; public string WorkingDirectory = MainPath.exeString; diff --git a/main/Forms/frmGroup.Designer.cs b/main/Forms/frmGroup.Designer.cs index ad82445..491c545 100644 --- a/main/Forms/frmGroup.Designer.cs +++ b/main/Forms/frmGroup.Designer.cs @@ -28,663 +28,694 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGroup)); - this.lblWith = new System.Windows.Forms.Label(); - this.lblErrorNum = new System.Windows.Forms.Label(); - this.lblNum = new System.Windows.Forms.Label(); - this.lblErrorIcon = new System.Windows.Forms.Label(); - this.lblErrorTitle = new System.Windows.Forms.Label(); - this.cmdSave = new System.Windows.Forms.Button(); - this.cmdExit = new System.Windows.Forms.Button(); - this.pnlShortcuts = new System.Windows.Forms.Panel(); - this.pnlGroupIcon = new System.Windows.Forms.Panel(); - this.cmdAddGroupIcon = new System.Windows.Forms.PictureBox(); - this.lblAddGroupIcon = new System.Windows.Forms.Label(); - this.lblAddGroupIconDesc = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.txtGroupName = new System.Windows.Forms.TextBox(); - this.pnlAddShortcut = new System.Windows.Forms.Panel(); - this.cmdAddShortcut = new System.Windows.Forms.PictureBox(); - this.lblErrorShortcut = new System.Windows.Forms.Label(); - this.lblAddShortcut = new System.Windows.Forms.Label(); - this.pnlColor = new System.Windows.Forms.Panel(); - this.numOpacDown = new System.Windows.Forms.Button(); - this.numOpacUp = new System.Windows.Forms.Button(); - this.lblPercent = new System.Windows.Forms.Label(); - this.pnlAllowOpenAll = new System.Windows.Forms.CheckBox(); - this.lblOpacityTooltip = new System.Windows.Forms.Label(); - this.lblOpacity = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.pnlCustomColor = new System.Windows.Forms.Panel(); - this.radioCustom = new System.Windows.Forms.RadioButton(); - this.radioDark = new System.Windows.Forms.RadioButton(); - this.radioLight = new System.Windows.Forms.RadioButton(); - this.cmdDelete = new System.Windows.Forms.Button(); - this.pnlEnd = new System.Windows.Forms.Panel(); - this.colorDialog = new System.Windows.Forms.ColorDialog(); - this.cmdWidthDown = new System.Windows.Forms.Button(); - this.cmdWidthUp = new System.Windows.Forms.Button(); - this.pnlArguments = new System.Windows.Forms.Panel(); - this.label7 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.cmdSelectDirectory = new System.Windows.Forms.Button(); - this.label5 = new System.Windows.Forms.Label(); - this.pnlWorkingDirectory = new System.Windows.Forms.TextBox(); - this.label3 = new System.Windows.Forms.Label(); - this.pnlArgumentTextbox = new System.Windows.Forms.TextBox(); - this.pnlGroupIcon.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.cmdAddGroupIcon)).BeginInit(); - this.pnlAddShortcut.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.cmdAddShortcut)).BeginInit(); - this.pnlColor.SuspendLayout(); - this.pnlEnd.SuspendLayout(); - this.pnlArguments.SuspendLayout(); - this.SuspendLayout(); - // - // lblWith - // - this.lblWith.AutoSize = true; - this.lblWith.BackColor = System.Drawing.Color.Transparent; - this.lblWith.Font = new System.Drawing.Font("Segoe UI", 13F); - this.lblWith.ForeColor = System.Drawing.Color.White; - this.lblWith.Location = new System.Drawing.Point(447, 23); - this.lblWith.Name = "lblWith"; - this.lblWith.Size = new System.Drawing.Size(64, 25); - this.lblWith.TabIndex = 40; - this.lblWith.Text = "Width:"; - // - // lblErrorNum - // - this.lblErrorNum.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); - this.lblErrorNum.ForeColor = System.Drawing.Color.Red; - this.lblErrorNum.Location = new System.Drawing.Point(268, 3); - this.lblErrorNum.Name = "lblErrorNum"; - this.lblErrorNum.Size = new System.Drawing.Size(241, 19); - this.lblErrorNum.TabIndex = 44; - this.lblErrorNum.Text = "Error message"; - this.lblErrorNum.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.lblErrorNum.Visible = false; - // - // lblNum - // - this.lblNum.BackColor = System.Drawing.Color.Transparent; - this.lblNum.Font = new System.Drawing.Font("Segoe UI", 13F, System.Drawing.FontStyle.Bold); - this.lblNum.ForeColor = System.Drawing.Color.White; - this.lblNum.Location = new System.Drawing.Point(505, 23); - this.lblNum.Name = "lblNum"; - this.lblNum.Size = new System.Drawing.Size(35, 25); - this.lblNum.TabIndex = 41; - this.lblNum.Text = "6"; - this.lblNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // lblErrorIcon - // - this.lblErrorIcon.AutoSize = true; - this.lblErrorIcon.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); - this.lblErrorIcon.ForeColor = System.Drawing.Color.Red; - this.lblErrorIcon.Location = new System.Drawing.Point(147, 76); - this.lblErrorIcon.Name = "lblErrorIcon"; - this.lblErrorIcon.Size = new System.Drawing.Size(96, 19); - this.lblErrorIcon.TabIndex = 38; - this.lblErrorIcon.Text = "Error message"; - this.lblErrorIcon.Visible = false; - // - // lblErrorTitle - // - this.lblErrorTitle.AutoSize = true; - this.lblErrorTitle.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); - this.lblErrorTitle.ForeColor = System.Drawing.Color.Red; - this.lblErrorTitle.Location = new System.Drawing.Point(44, 9); - this.lblErrorTitle.Name = "lblErrorTitle"; - this.lblErrorTitle.Size = new System.Drawing.Size(96, 19); - this.lblErrorTitle.TabIndex = 37; - this.lblErrorTitle.Text = "Error message"; - this.lblErrorTitle.Visible = false; - // - // cmdSave - // - this.cmdSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); - this.cmdSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); - this.cmdSave.FlatAppearance.BorderSize = 0; - this.cmdSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdSave.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmdSave.ForeColor = System.Drawing.Color.White; - this.cmdSave.Location = new System.Drawing.Point(28, 7); - this.cmdSave.Name = "cmdSave"; - this.cmdSave.Size = new System.Drawing.Size(129, 30); - this.cmdSave.TabIndex = 36; - this.cmdSave.Text = "Save"; - this.cmdSave.UseVisualStyleBackColor = false; - this.cmdSave.Click += new System.EventHandler(this.cmdSave_Click); - // - // cmdExit - // - this.cmdExit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); - this.cmdExit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); - this.cmdExit.FlatAppearance.BorderSize = 0; - this.cmdExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdExit.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmdExit.ForeColor = System.Drawing.Color.White; - this.cmdExit.Location = new System.Drawing.Point(171, 7); - this.cmdExit.Name = "cmdExit"; - this.cmdExit.Size = new System.Drawing.Size(129, 30); - this.cmdExit.TabIndex = 35; - this.cmdExit.Text = "Exit"; - this.cmdExit.UseVisualStyleBackColor = false; - this.cmdExit.Click += new System.EventHandler(this.cmdExit_Click); - // - // pnlShortcuts - // - this.pnlShortcuts.AutoScroll = true; - this.pnlShortcuts.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.pnlShortcuts.ForeColor = System.Drawing.SystemColors.ControlText; - this.pnlShortcuts.Location = new System.Drawing.Point(45, 194); - this.pnlShortcuts.Name = "pnlShortcuts"; - this.pnlShortcuts.Size = new System.Drawing.Size(500, 5); - this.pnlShortcuts.TabIndex = 34; - // - // pnlGroupIcon - // - this.pnlGroupIcon.AllowDrop = true; - this.pnlGroupIcon.Controls.Add(this.cmdAddGroupIcon); - this.pnlGroupIcon.Controls.Add(this.lblAddGroupIcon); - this.pnlGroupIcon.Controls.Add(this.lblAddGroupIconDesc); - this.pnlGroupIcon.Location = new System.Drawing.Point(49, 83); - this.pnlGroupIcon.Name = "pnlGroupIcon"; - this.pnlGroupIcon.Size = new System.Drawing.Size(495, 86); - this.pnlGroupIcon.TabIndex = 33; - this.pnlGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); - this.pnlGroupIcon.DragDrop += new System.Windows.Forms.DragEventHandler(this.pnlDragDropImg); - this.pnlGroupIcon.DragEnter += new System.Windows.Forms.DragEventHandler(this.pnlDragDropEnterImg); - this.pnlGroupIcon.DragLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); - this.pnlGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); - this.pnlGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); - // - // cmdAddGroupIcon - // - this.cmdAddGroupIcon.BackgroundImage = global::client.Properties.Resources.AddWhite; - this.cmdAddGroupIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.cmdAddGroupIcon.Location = new System.Drawing.Point(23, 12); - this.cmdAddGroupIcon.Margin = new System.Windows.Forms.Padding(30, 30, 10, 30); - this.cmdAddGroupIcon.Name = "cmdAddGroupIcon"; - this.cmdAddGroupIcon.Size = new System.Drawing.Size(60, 60); - this.cmdAddGroupIcon.TabIndex = 10; - this.cmdAddGroupIcon.TabStop = false; - this.cmdAddGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); - this.cmdAddGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); - this.cmdAddGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); - // - // lblAddGroupIcon - // - this.lblAddGroupIcon.AutoSize = true; - this.lblAddGroupIcon.BackColor = System.Drawing.Color.Transparent; - this.lblAddGroupIcon.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblAddGroupIcon.ForeColor = System.Drawing.Color.White; - this.lblAddGroupIcon.Location = new System.Drawing.Point(96, 15); - this.lblAddGroupIcon.Name = "lblAddGroupIcon"; - this.lblAddGroupIcon.Size = new System.Drawing.Size(190, 30); - this.lblAddGroupIcon.TabIndex = 11; - this.lblAddGroupIcon.Text = "Change group icon"; - this.lblAddGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); - this.lblAddGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); - this.lblAddGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); - // - // lblAddGroupIconDesc - // - this.lblAddGroupIconDesc.AutoSize = true; - this.lblAddGroupIconDesc.BackColor = System.Drawing.Color.Transparent; - this.lblAddGroupIconDesc.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblAddGroupIconDesc.ForeColor = System.Drawing.Color.White; - this.lblAddGroupIconDesc.Location = new System.Drawing.Point(99, 46); - this.lblAddGroupIconDesc.Name = "lblAddGroupIconDesc"; - this.lblAddGroupIconDesc.Size = new System.Drawing.Size(245, 17); - this.lblAddGroupIconDesc.TabIndex = 12; - this.lblAddGroupIconDesc.Text = "Select the icon that shows in the taskbar "; - this.lblAddGroupIconDesc.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); - this.lblAddGroupIconDesc.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); - this.lblAddGroupIconDesc.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); - // - // label4 - // - this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label4.Location = new System.Drawing.Point(45, 182); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(500, 1); - this.label4.TabIndex = 32; - // - // label2 - // - this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label2.Location = new System.Drawing.Point(45, 69); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(500, 1); - this.label2.TabIndex = 31; - // - // txtGroupName - // - this.txtGroupName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.txtGroupName.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtGroupName.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtGroupName.ForeColor = System.Drawing.Color.White; - this.txtGroupName.Location = new System.Drawing.Point(48, 29); - this.txtGroupName.Name = "txtGroupName"; - this.txtGroupName.Size = new System.Drawing.Size(395, 32); - this.txtGroupName.TabIndex = 30; - this.txtGroupName.TabStop = false; - this.txtGroupName.Text = "Name the new group..."; - this.txtGroupName.MouseClick += new System.Windows.Forms.MouseEventHandler(this.txtGroupName_MouseClick); - this.txtGroupName.TextChanged += new System.EventHandler(this.txtGroupName_TextChanged); - this.txtGroupName.Leave += new System.EventHandler(this.txtGroupName_Leave); - // - // pnlAddShortcut - // - this.pnlAddShortcut.AllowDrop = true; - this.pnlAddShortcut.Controls.Add(this.cmdAddShortcut); - this.pnlAddShortcut.Controls.Add(this.lblErrorShortcut); - this.pnlAddShortcut.Controls.Add(this.lblAddShortcut); - this.pnlAddShortcut.Location = new System.Drawing.Point(94, 203); - this.pnlAddShortcut.Name = "pnlAddShortcut"; - this.pnlAddShortcut.Size = new System.Drawing.Size(415, 80); - this.pnlAddShortcut.TabIndex = 45; - this.pnlAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); - this.pnlAddShortcut.DragDrop += new System.Windows.Forms.DragEventHandler(this.pnlDragDropExt); - this.pnlAddShortcut.DragEnter += new System.Windows.Forms.DragEventHandler(this.pnlDragDropEnterExt); - this.pnlAddShortcut.DragLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); - this.pnlAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); - this.pnlAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); - // - // cmdAddShortcut - // - this.cmdAddShortcut.BackgroundImage = global::client.Properties.Resources.AddGray; - this.cmdAddShortcut.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; - this.cmdAddShortcut.Location = new System.Drawing.Point(191, 16); - this.cmdAddShortcut.Margin = new System.Windows.Forms.Padding(30, 30, 10, 30); - this.cmdAddShortcut.Name = "cmdAddShortcut"; - this.cmdAddShortcut.Size = new System.Drawing.Size(35, 35); - this.cmdAddShortcut.TabIndex = 15; - this.cmdAddShortcut.TabStop = false; - this.cmdAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); - this.cmdAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); - this.cmdAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); - // - // lblErrorShortcut - // - this.lblErrorShortcut.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); - this.lblErrorShortcut.ForeColor = System.Drawing.Color.Red; - this.lblErrorShortcut.Location = new System.Drawing.Point(0, 54); - this.lblErrorShortcut.Name = "lblErrorShortcut"; - this.lblErrorShortcut.Size = new System.Drawing.Size(414, 19); - this.lblErrorShortcut.TabIndex = 23; - this.lblErrorShortcut.Text = "Error message"; - this.lblErrorShortcut.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblErrorShortcut.Visible = false; - // - // lblAddShortcut - // - this.lblAddShortcut.AutoSize = true; - this.lblAddShortcut.BackColor = System.Drawing.Color.Transparent; - this.lblAddShortcut.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblAddShortcut.ForeColor = System.Drawing.Color.White; - this.lblAddShortcut.Location = new System.Drawing.Point(159, 51); - this.lblAddShortcut.Name = "lblAddShortcut"; - this.lblAddShortcut.Size = new System.Drawing.Size(110, 17); - this.lblAddShortcut.TabIndex = 14; - this.lblAddShortcut.Text = "Add new shortcut"; - this.lblAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); - this.lblAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); - this.lblAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); - // - // pnlColor - // - this.pnlColor.Controls.Add(this.numOpacDown); - this.pnlColor.Controls.Add(this.numOpacUp); - this.pnlColor.Controls.Add(this.lblPercent); - this.pnlColor.Controls.Add(this.pnlAllowOpenAll); - this.pnlColor.Controls.Add(this.lblOpacityTooltip); - this.pnlColor.Controls.Add(this.lblOpacity); - this.pnlColor.Controls.Add(this.label1); - this.pnlColor.Controls.Add(this.pnlCustomColor); - this.pnlColor.Controls.Add(this.radioCustom); - this.pnlColor.Controls.Add(this.radioDark); - this.pnlColor.Controls.Add(this.radioLight); - this.pnlColor.Location = new System.Drawing.Point(110, 544); - this.pnlColor.Name = "pnlColor"; - this.pnlColor.Size = new System.Drawing.Size(368, 164); - this.pnlColor.TabIndex = 48; - // - // numOpacDown - // - this.numOpacDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.numOpacDown.BackgroundImage = global::client.Properties.Resources.NumDownWhite; - this.numOpacDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.numOpacDown.FlatAppearance.BorderSize = 0; - this.numOpacDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.numOpacDown.Location = new System.Drawing.Point(250, 115); - this.numOpacDown.Name = "numOpacDown"; - this.numOpacDown.Size = new System.Drawing.Size(16, 8); - this.numOpacDown.TabIndex = 49; - this.numOpacDown.UseVisualStyleBackColor = false; - this.numOpacDown.Click += new System.EventHandler(this.numOpacDown_Click); - // - // numOpacUp - // - this.numOpacUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.numOpacUp.BackgroundImage = global::client.Properties.Resources.NumUpWhite; - this.numOpacUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.numOpacUp.FlatAppearance.BorderSize = 0; - this.numOpacUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.numOpacUp.Location = new System.Drawing.Point(250, 101); - this.numOpacUp.Name = "numOpacUp"; - this.numOpacUp.Size = new System.Drawing.Size(16, 8); - this.numOpacUp.TabIndex = 50; - this.numOpacUp.UseVisualStyleBackColor = false; - this.numOpacUp.Click += new System.EventHandler(this.numOpacUp_Click); - // - // lblPercent - // - this.lblPercent.AutoSize = true; - this.lblPercent.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.lblPercent.ForeColor = System.Drawing.Color.White; - this.lblPercent.Location = new System.Drawing.Point(216, 102); - this.lblPercent.Name = "lblPercent"; - this.lblPercent.Size = new System.Drawing.Size(21, 20); - this.lblPercent.TabIndex = 5; - this.lblPercent.Text = "%"; - // - // pnlAllowOpenAll - // - this.pnlAllowOpenAll.AutoSize = true; - this.pnlAllowOpenAll.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.pnlAllowOpenAll.ForeColor = System.Drawing.Color.White; - this.pnlAllowOpenAll.Location = new System.Drawing.Point(64, 131); - this.pnlAllowOpenAll.Name = "pnlAllowOpenAll"; - this.pnlAllowOpenAll.Size = new System.Drawing.Size(278, 24); - this.pnlAllowOpenAll.TabIndex = 49; - this.pnlAllowOpenAll.Text = "Allow open-all shortcuts (Ctrl + Enter)"; - this.pnlAllowOpenAll.UseVisualStyleBackColor = true; - this.pnlAllowOpenAll.CheckedChanged += new System.EventHandler(this.pnlAllowOpenAll_CheckedChanged); - // - // lblOpacityTooltip - // - this.lblOpacityTooltip.AutoSize = true; - this.lblOpacityTooltip.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.lblOpacityTooltip.ForeColor = System.Drawing.Color.White; - this.lblOpacityTooltip.Location = new System.Drawing.Point(127, 101); - this.lblOpacityTooltip.Name = "lblOpacityTooltip"; - this.lblOpacityTooltip.Size = new System.Drawing.Size(63, 20); - this.lblOpacityTooltip.TabIndex = 4; - this.lblOpacityTooltip.Text = "Opacity:"; - // - // lblOpacity - // - this.lblOpacity.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.lblOpacity.ForeColor = System.Drawing.Color.White; - this.lblOpacity.Location = new System.Drawing.Point(185, 102); - this.lblOpacity.Name = "lblOpacity"; - this.lblOpacity.Size = new System.Drawing.Size(35, 20); - this.lblOpacity.TabIndex = 50; - this.lblOpacity.Text = "10"; - this.lblOpacity.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // label1 - // - this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label1.Location = new System.Drawing.Point(189, 122); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(45, 1); - this.label1.TabIndex = 49; - // - // pnlCustomColor - // - this.pnlCustomColor.Location = new System.Drawing.Point(256, 75); - this.pnlCustomColor.Name = "pnlCustomColor"; - this.pnlCustomColor.Size = new System.Drawing.Size(15, 15); - this.pnlCustomColor.TabIndex = 3; - // - // radioCustom - // - this.radioCustom.AutoSize = true; - this.radioCustom.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.radioCustom.ForeColor = System.Drawing.Color.White; - this.radioCustom.Location = new System.Drawing.Point(135, 69); - this.radioCustom.Name = "radioCustom"; - this.radioCustom.Size = new System.Drawing.Size(115, 24); - this.radioCustom.TabIndex = 2; - this.radioCustom.TabStop = true; - this.radioCustom.Text = "Custom color"; - this.radioCustom.UseVisualStyleBackColor = true; - this.radioCustom.Click += new System.EventHandler(this.radioCustom_Click); - // - // radioDark - // - this.radioDark.AutoSize = true; - this.radioDark.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.radioDark.ForeColor = System.Drawing.Color.White; - this.radioDark.Location = new System.Drawing.Point(135, 9); - this.radioDark.Name = "radioDark"; - this.radioDark.Size = new System.Drawing.Size(96, 24); - this.radioDark.TabIndex = 1; - this.radioDark.TabStop = true; - this.radioDark.Text = "Dark color"; - this.radioDark.UseVisualStyleBackColor = true; - this.radioDark.Click += new System.EventHandler(this.radioDark_Click); - // - // radioLight - // - this.radioLight.AutoSize = true; - this.radioLight.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.radioLight.ForeColor = System.Drawing.Color.White; - this.radioLight.Location = new System.Drawing.Point(135, 39); - this.radioLight.Name = "radioLight"; - this.radioLight.Size = new System.Drawing.Size(98, 24); - this.radioLight.TabIndex = 0; - this.radioLight.TabStop = true; - this.radioLight.Text = "Light color"; - this.radioLight.UseVisualStyleBackColor = true; - this.radioLight.Click += new System.EventHandler(this.radioLight_Click); - // - // cmdDelete - // - this.cmdDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); - this.cmdDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); - this.cmdDelete.FlatAppearance.BorderSize = 0; - this.cmdDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdDelete.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.cmdDelete.ForeColor = System.Drawing.Color.White; - this.cmdDelete.Location = new System.Drawing.Point(313, 7); - this.cmdDelete.Name = "cmdDelete"; - this.cmdDelete.Size = new System.Drawing.Size(129, 30); - this.cmdDelete.TabIndex = 46; - this.cmdDelete.Text = "Delete"; - this.cmdDelete.UseVisualStyleBackColor = false; - this.cmdDelete.Click += new System.EventHandler(this.cmdDelete_Click); - // - // pnlEnd - // - this.pnlEnd.Controls.Add(this.cmdDelete); - this.pnlEnd.Controls.Add(this.cmdSave); - this.pnlEnd.Controls.Add(this.cmdExit); - this.pnlEnd.Location = new System.Drawing.Point(52, 722); - this.pnlEnd.Name = "pnlEnd"; - this.pnlEnd.Size = new System.Drawing.Size(482, 44); - this.pnlEnd.TabIndex = 47; - // - // cmdWidthDown - // - this.cmdWidthDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.cmdWidthDown.BackgroundImage = global::client.Properties.Resources.NumDownWhite; - this.cmdWidthDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.cmdWidthDown.FlatAppearance.BorderSize = 0; - this.cmdWidthDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdWidthDown.Location = new System.Drawing.Point(514, 51); - this.cmdWidthDown.Name = "cmdWidthDown"; - this.cmdWidthDown.Size = new System.Drawing.Size(16, 8); - this.cmdWidthDown.TabIndex = 42; - this.cmdWidthDown.UseVisualStyleBackColor = false; - this.cmdWidthDown.Click += new System.EventHandler(this.cmdWidthDown_Click); - // - // cmdWidthUp - // - this.cmdWidthUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.cmdWidthUp.BackgroundImage = global::client.Properties.Resources.NumUpWhite; - this.cmdWidthUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; - this.cmdWidthUp.FlatAppearance.BorderSize = 0; - this.cmdWidthUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdWidthUp.Location = new System.Drawing.Point(514, 13); - this.cmdWidthUp.Name = "cmdWidthUp"; - this.cmdWidthUp.Size = new System.Drawing.Size(16, 8); - this.cmdWidthUp.TabIndex = 43; - this.cmdWidthUp.UseVisualStyleBackColor = false; - this.cmdWidthUp.Click += new System.EventHandler(this.cmdWidthUp_Click); - // - // pnlArguments - // - this.pnlArguments.Controls.Add(this.label7); - this.pnlArguments.Controls.Add(this.label6); - this.pnlArguments.Controls.Add(this.cmdSelectDirectory); - this.pnlArguments.Controls.Add(this.label5); - this.pnlArguments.Controls.Add(this.pnlWorkingDirectory); - this.pnlArguments.Controls.Add(this.label3); - this.pnlArguments.Controls.Add(this.pnlArgumentTextbox); - this.pnlArguments.Location = new System.Drawing.Point(45, 547); - this.pnlArguments.Name = "pnlArguments"; - this.pnlArguments.Size = new System.Drawing.Size(482, 131); - this.pnlArguments.TabIndex = 48; - this.pnlArguments.Visible = false; - // - // label7 - // - this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label7.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label7.Location = new System.Drawing.Point(26, 51); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(440, 1); - this.label7.TabIndex = 53; - // - // label6 - // - this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); - this.label6.Location = new System.Drawing.Point(26, 103); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(335, 1); - this.label6.TabIndex = 50; - // - // cmdSelectDirectory - // - this.cmdSelectDirectory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); - this.cmdSelectDirectory.FlatAppearance.BorderSize = 0; - this.cmdSelectDirectory.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.cmdSelectDirectory.Font = new System.Drawing.Font("Segoe UI", 8F); - this.cmdSelectDirectory.ForeColor = System.Drawing.Color.White; - this.cmdSelectDirectory.Location = new System.Drawing.Point(367, 79); - this.cmdSelectDirectory.Name = "cmdSelectDirectory"; - this.cmdSelectDirectory.Size = new System.Drawing.Size(97, 27); - this.cmdSelectDirectory.TabIndex = 52; - this.cmdSelectDirectory.Text = "Select Directory"; - this.cmdSelectDirectory.UseVisualStyleBackColor = false; - this.cmdSelectDirectory.Click += new System.EventHandler(this.cmdSelectDirectory_Click); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.label5.ForeColor = System.Drawing.Color.White; - this.label5.Location = new System.Drawing.Point(23, 63); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(132, 20); - this.label5.TabIndex = 51; - this.label5.Text = "Working Directory:"; - // - // pnlWorkingDirectory - // - this.pnlWorkingDirectory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.pnlWorkingDirectory.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.pnlWorkingDirectory.Enabled = false; - this.pnlWorkingDirectory.Font = new System.Drawing.Font("Segoe UI", 9F); - this.pnlWorkingDirectory.ForeColor = System.Drawing.Color.White; - this.pnlWorkingDirectory.Location = new System.Drawing.Point(27, 85); - this.pnlWorkingDirectory.Name = "pnlWorkingDirectory"; - this.pnlWorkingDirectory.Size = new System.Drawing.Size(330, 16); - this.pnlWorkingDirectory.TabIndex = 50; - this.pnlWorkingDirectory.TextChanged += new System.EventHandler(this.pnlWorkingDirectory_TextChanged); - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Segoe UI", 11.25F); - this.label3.ForeColor = System.Drawing.Color.White; - this.label3.Location = new System.Drawing.Point(23, 11); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(84, 20); - this.label3.TabIndex = 1; - this.label3.Text = "Arguments:"; - // - // pnlArgumentTextbox - // - this.pnlArgumentTextbox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.pnlArgumentTextbox.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.pnlArgumentTextbox.Enabled = false; - this.pnlArgumentTextbox.Font = new System.Drawing.Font("Segoe UI", 9F); - this.pnlArgumentTextbox.ForeColor = System.Drawing.Color.White; - this.pnlArgumentTextbox.Location = new System.Drawing.Point(26, 33); - this.pnlArgumentTextbox.Name = "pnlArgumentTextbox"; - this.pnlArgumentTextbox.Size = new System.Drawing.Size(425, 16); - this.pnlArgumentTextbox.TabIndex = 0; - this.pnlArgumentTextbox.TextChanged += new System.EventHandler(this.pnlArgumentTextbox_TextChanged); - this.pnlArgumentTextbox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pnlArgumentTextbox_KeyDown); - // - // frmGroup - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoScroll = true; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); - this.ClientSize = new System.Drawing.Size(589, 821); - this.Controls.Add(this.pnlArguments); - this.Controls.Add(this.pnlEnd); - this.Controls.Add(this.pnlAddShortcut); - this.Controls.Add(this.pnlColor); - this.Controls.Add(this.lblWith); - this.Controls.Add(this.lblErrorNum); - this.Controls.Add(this.cmdWidthDown); - this.Controls.Add(this.lblNum); - this.Controls.Add(this.lblErrorIcon); - this.Controls.Add(this.lblErrorTitle); - this.Controls.Add(this.pnlShortcuts); - this.Controls.Add(this.pnlGroupIcon); - this.Controls.Add(this.label4); - this.Controls.Add(this.cmdWidthUp); - this.Controls.Add(this.label2); - this.Controls.Add(this.txtGroupName); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Name = "frmGroup"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "New group"; - this.Load += new System.EventHandler(this.frmGroup_Load); - this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.frmGroup_MouseClick); - this.pnlGroupIcon.ResumeLayout(false); - this.pnlGroupIcon.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.cmdAddGroupIcon)).EndInit(); - this.pnlAddShortcut.ResumeLayout(false); - this.pnlAddShortcut.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.cmdAddShortcut)).EndInit(); - this.pnlColor.ResumeLayout(false); - this.pnlColor.PerformLayout(); - this.pnlEnd.ResumeLayout(false); - this.pnlArguments.ResumeLayout(false); - this.pnlArguments.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGroup)); + this.lblWith = new System.Windows.Forms.Label(); + this.lblErrorNum = new System.Windows.Forms.Label(); + this.lblNum = new System.Windows.Forms.Label(); + this.lblErrorIcon = new System.Windows.Forms.Label(); + this.lblErrorTitle = new System.Windows.Forms.Label(); + this.cmdSave = new System.Windows.Forms.Button(); + this.cmdExit = new System.Windows.Forms.Button(); + this.pnlShortcuts = new System.Windows.Forms.Panel(); + this.pnlGroupIcon = new System.Windows.Forms.Panel(); + this.cmdAddGroupIcon = new System.Windows.Forms.PictureBox(); + this.lblAddGroupIcon = new System.Windows.Forms.Label(); + this.lblAddGroupIconDesc = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.txtGroupName = new System.Windows.Forms.TextBox(); + this.pnlAddShortcut = new System.Windows.Forms.Panel(); + this.cmdAddShortcut = new System.Windows.Forms.PictureBox(); + this.lblErrorShortcut = new System.Windows.Forms.Label(); + this.lblAddShortcut = new System.Windows.Forms.Label(); + this.pnlColor = new System.Windows.Forms.Panel(); + this.numOpacDown = new System.Windows.Forms.Button(); + this.numOpacUp = new System.Windows.Forms.Button(); + this.lblPercent = new System.Windows.Forms.Label(); + this.pnlAllowOpenAll = new System.Windows.Forms.CheckBox(); + this.lblOpacityTooltip = new System.Windows.Forms.Label(); + this.lblOpacity = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.pnlCustomColor = new System.Windows.Forms.Panel(); + this.radioCustom = new System.Windows.Forms.RadioButton(); + this.radioDark = new System.Windows.Forms.RadioButton(); + this.radioLight = new System.Windows.Forms.RadioButton(); + this.cmdDelete = new System.Windows.Forms.Button(); + this.pnlEnd = new System.Windows.Forms.Panel(); + this.colorDialog = new System.Windows.Forms.ColorDialog(); + this.cmdWidthDown = new System.Windows.Forms.Button(); + this.cmdWidthUp = new System.Windows.Forms.Button(); + this.pnlArguments = new System.Windows.Forms.Panel(); + this.btn_selectSpecificIcon = new System.Windows.Forms.Button(); + this.lbl_specificIcon = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.cmdSelectDirectory = new System.Windows.Forms.Button(); + this.label5 = new System.Windows.Forms.Label(); + this.pnlWorkingDirectory = new System.Windows.Forms.TextBox(); + this.label3 = new System.Windows.Forms.Label(); + this.pnlArgumentTextbox = new System.Windows.Forms.TextBox(); + this.pnlGroupIcon.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.cmdAddGroupIcon)).BeginInit(); + this.pnlAddShortcut.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.cmdAddShortcut)).BeginInit(); + this.pnlColor.SuspendLayout(); + this.pnlEnd.SuspendLayout(); + this.pnlArguments.SuspendLayout(); + this.SuspendLayout(); + // + // lblWith + // + this.lblWith.AutoSize = true; + this.lblWith.BackColor = System.Drawing.Color.Transparent; + this.lblWith.Font = new System.Drawing.Font("Segoe UI", 13F); + this.lblWith.ForeColor = System.Drawing.Color.White; + this.lblWith.Location = new System.Drawing.Point(447, 23); + this.lblWith.Name = "lblWith"; + this.lblWith.Size = new System.Drawing.Size(64, 25); + this.lblWith.TabIndex = 40; + this.lblWith.Text = "Width:"; + // + // lblErrorNum + // + this.lblErrorNum.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); + this.lblErrorNum.ForeColor = System.Drawing.Color.Red; + this.lblErrorNum.Location = new System.Drawing.Point(268, 3); + this.lblErrorNum.Name = "lblErrorNum"; + this.lblErrorNum.Size = new System.Drawing.Size(241, 19); + this.lblErrorNum.TabIndex = 44; + this.lblErrorNum.Text = "Error message"; + this.lblErrorNum.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.lblErrorNum.Visible = false; + // + // lblNum + // + this.lblNum.BackColor = System.Drawing.Color.Transparent; + this.lblNum.Font = new System.Drawing.Font("Segoe UI", 13F, System.Drawing.FontStyle.Bold); + this.lblNum.ForeColor = System.Drawing.Color.White; + this.lblNum.Location = new System.Drawing.Point(505, 23); + this.lblNum.Name = "lblNum"; + this.lblNum.Size = new System.Drawing.Size(35, 25); + this.lblNum.TabIndex = 41; + this.lblNum.Text = "6"; + this.lblNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblErrorIcon + // + this.lblErrorIcon.AutoSize = true; + this.lblErrorIcon.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); + this.lblErrorIcon.ForeColor = System.Drawing.Color.Red; + this.lblErrorIcon.Location = new System.Drawing.Point(147, 76); + this.lblErrorIcon.Name = "lblErrorIcon"; + this.lblErrorIcon.Size = new System.Drawing.Size(96, 19); + this.lblErrorIcon.TabIndex = 38; + this.lblErrorIcon.Text = "Error message"; + this.lblErrorIcon.Visible = false; + // + // lblErrorTitle + // + this.lblErrorTitle.AutoSize = true; + this.lblErrorTitle.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); + this.lblErrorTitle.ForeColor = System.Drawing.Color.Red; + this.lblErrorTitle.Location = new System.Drawing.Point(44, 9); + this.lblErrorTitle.Name = "lblErrorTitle"; + this.lblErrorTitle.Size = new System.Drawing.Size(96, 19); + this.lblErrorTitle.TabIndex = 37; + this.lblErrorTitle.Text = "Error message"; + this.lblErrorTitle.Visible = false; + // + // cmdSave + // + this.cmdSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); + this.cmdSave.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); + this.cmdSave.FlatAppearance.BorderSize = 0; + this.cmdSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdSave.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmdSave.ForeColor = System.Drawing.Color.White; + this.cmdSave.Location = new System.Drawing.Point(28, 7); + this.cmdSave.Name = "cmdSave"; + this.cmdSave.Size = new System.Drawing.Size(129, 30); + this.cmdSave.TabIndex = 36; + this.cmdSave.Text = "Save"; + this.cmdSave.UseVisualStyleBackColor = false; + this.cmdSave.Click += new System.EventHandler(this.cmdSave_Click); + // + // cmdExit + // + this.cmdExit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); + this.cmdExit.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); + this.cmdExit.FlatAppearance.BorderSize = 0; + this.cmdExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdExit.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmdExit.ForeColor = System.Drawing.Color.White; + this.cmdExit.Location = new System.Drawing.Point(171, 7); + this.cmdExit.Name = "cmdExit"; + this.cmdExit.Size = new System.Drawing.Size(129, 30); + this.cmdExit.TabIndex = 35; + this.cmdExit.Text = "Exit"; + this.cmdExit.UseVisualStyleBackColor = false; + this.cmdExit.Click += new System.EventHandler(this.cmdExit_Click); + // + // pnlShortcuts + // + this.pnlShortcuts.AutoScroll = true; + this.pnlShortcuts.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.pnlShortcuts.ForeColor = System.Drawing.SystemColors.ControlText; + this.pnlShortcuts.Location = new System.Drawing.Point(45, 194); + this.pnlShortcuts.Name = "pnlShortcuts"; + this.pnlShortcuts.Size = new System.Drawing.Size(500, 5); + this.pnlShortcuts.TabIndex = 34; + // + // pnlGroupIcon + // + this.pnlGroupIcon.AllowDrop = true; + this.pnlGroupIcon.Controls.Add(this.cmdAddGroupIcon); + this.pnlGroupIcon.Controls.Add(this.lblAddGroupIcon); + this.pnlGroupIcon.Controls.Add(this.lblAddGroupIconDesc); + this.pnlGroupIcon.Location = new System.Drawing.Point(49, 83); + this.pnlGroupIcon.Name = "pnlGroupIcon"; + this.pnlGroupIcon.Size = new System.Drawing.Size(495, 86); + this.pnlGroupIcon.TabIndex = 33; + this.pnlGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); + this.pnlGroupIcon.DragDrop += new System.Windows.Forms.DragEventHandler(this.pnlDragDropImg); + this.pnlGroupIcon.DragEnter += new System.Windows.Forms.DragEventHandler(this.pnlDragDropEnterImg); + this.pnlGroupIcon.DragLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); + this.pnlGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); + this.pnlGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); + // + // cmdAddGroupIcon + // + this.cmdAddGroupIcon.BackgroundImage = global::client.Properties.Resources.AddWhite; + this.cmdAddGroupIcon.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.cmdAddGroupIcon.Location = new System.Drawing.Point(23, 12); + this.cmdAddGroupIcon.Margin = new System.Windows.Forms.Padding(30, 30, 10, 30); + this.cmdAddGroupIcon.Name = "cmdAddGroupIcon"; + this.cmdAddGroupIcon.Size = new System.Drawing.Size(60, 60); + this.cmdAddGroupIcon.TabIndex = 10; + this.cmdAddGroupIcon.TabStop = false; + this.cmdAddGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); + this.cmdAddGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); + this.cmdAddGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); + // + // lblAddGroupIcon + // + this.lblAddGroupIcon.AutoSize = true; + this.lblAddGroupIcon.BackColor = System.Drawing.Color.Transparent; + this.lblAddGroupIcon.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAddGroupIcon.ForeColor = System.Drawing.Color.White; + this.lblAddGroupIcon.Location = new System.Drawing.Point(96, 15); + this.lblAddGroupIcon.Name = "lblAddGroupIcon"; + this.lblAddGroupIcon.Size = new System.Drawing.Size(190, 30); + this.lblAddGroupIcon.TabIndex = 11; + this.lblAddGroupIcon.Text = "Change group icon"; + this.lblAddGroupIcon.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); + this.lblAddGroupIcon.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); + this.lblAddGroupIcon.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); + // + // lblAddGroupIconDesc + // + this.lblAddGroupIconDesc.AutoSize = true; + this.lblAddGroupIconDesc.BackColor = System.Drawing.Color.Transparent; + this.lblAddGroupIconDesc.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAddGroupIconDesc.ForeColor = System.Drawing.Color.White; + this.lblAddGroupIconDesc.Location = new System.Drawing.Point(99, 46); + this.lblAddGroupIconDesc.Name = "lblAddGroupIconDesc"; + this.lblAddGroupIconDesc.Size = new System.Drawing.Size(245, 17); + this.lblAddGroupIconDesc.TabIndex = 12; + this.lblAddGroupIconDesc.Text = "Select the icon that shows in the taskbar "; + this.lblAddGroupIconDesc.Click += new System.EventHandler(this.cmdAddGroupIcon_Click); + this.lblAddGroupIconDesc.MouseEnter += new System.EventHandler(this.pnlGroupIcon_MouseEnter); + this.lblAddGroupIconDesc.MouseLeave += new System.EventHandler(this.pnlGroupIcon_MouseLeave); + // + // label4 + // + this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label4.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label4.Location = new System.Drawing.Point(45, 182); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(500, 1); + this.label4.TabIndex = 32; + // + // label2 + // + this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label2.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label2.Location = new System.Drawing.Point(45, 69); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(500, 1); + this.label2.TabIndex = 31; + // + // txtGroupName + // + this.txtGroupName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.txtGroupName.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtGroupName.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtGroupName.ForeColor = System.Drawing.Color.White; + this.txtGroupName.Location = new System.Drawing.Point(48, 29); + this.txtGroupName.Name = "txtGroupName"; + this.txtGroupName.Size = new System.Drawing.Size(395, 32); + this.txtGroupName.TabIndex = 30; + this.txtGroupName.TabStop = false; + this.txtGroupName.Text = "Name the new group..."; + this.txtGroupName.MouseClick += new System.Windows.Forms.MouseEventHandler(this.txtGroupName_MouseClick); + this.txtGroupName.TextChanged += new System.EventHandler(this.txtGroupName_TextChanged); + this.txtGroupName.Leave += new System.EventHandler(this.txtGroupName_Leave); + // + // pnlAddShortcut + // + this.pnlAddShortcut.AllowDrop = true; + this.pnlAddShortcut.Controls.Add(this.cmdAddShortcut); + this.pnlAddShortcut.Controls.Add(this.lblErrorShortcut); + this.pnlAddShortcut.Controls.Add(this.lblAddShortcut); + this.pnlAddShortcut.Location = new System.Drawing.Point(94, 203); + this.pnlAddShortcut.Name = "pnlAddShortcut"; + this.pnlAddShortcut.Size = new System.Drawing.Size(415, 80); + this.pnlAddShortcut.TabIndex = 45; + this.pnlAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); + this.pnlAddShortcut.DragDrop += new System.Windows.Forms.DragEventHandler(this.pnlDragDropExt); + this.pnlAddShortcut.DragEnter += new System.Windows.Forms.DragEventHandler(this.pnlDragDropEnterExt); + this.pnlAddShortcut.DragLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); + this.pnlAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); + this.pnlAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); + // + // cmdAddShortcut + // + this.cmdAddShortcut.BackgroundImage = global::client.Properties.Resources.AddGray; + this.cmdAddShortcut.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.cmdAddShortcut.Location = new System.Drawing.Point(191, 16); + this.cmdAddShortcut.Margin = new System.Windows.Forms.Padding(30, 30, 10, 30); + this.cmdAddShortcut.Name = "cmdAddShortcut"; + this.cmdAddShortcut.Size = new System.Drawing.Size(35, 35); + this.cmdAddShortcut.TabIndex = 15; + this.cmdAddShortcut.TabStop = false; + this.cmdAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); + this.cmdAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); + this.cmdAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); + // + // lblErrorShortcut + // + this.lblErrorShortcut.Font = new System.Drawing.Font("Segoe UI Semibold", 10F, System.Drawing.FontStyle.Bold); + this.lblErrorShortcut.ForeColor = System.Drawing.Color.Red; + this.lblErrorShortcut.Location = new System.Drawing.Point(0, 54); + this.lblErrorShortcut.Name = "lblErrorShortcut"; + this.lblErrorShortcut.Size = new System.Drawing.Size(414, 19); + this.lblErrorShortcut.TabIndex = 23; + this.lblErrorShortcut.Text = "Error message"; + this.lblErrorShortcut.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.lblErrorShortcut.Visible = false; + // + // lblAddShortcut + // + this.lblAddShortcut.AutoSize = true; + this.lblAddShortcut.BackColor = System.Drawing.Color.Transparent; + this.lblAddShortcut.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblAddShortcut.ForeColor = System.Drawing.Color.White; + this.lblAddShortcut.Location = new System.Drawing.Point(159, 51); + this.lblAddShortcut.Name = "lblAddShortcut"; + this.lblAddShortcut.Size = new System.Drawing.Size(110, 17); + this.lblAddShortcut.TabIndex = 14; + this.lblAddShortcut.Text = "Add new shortcut"; + this.lblAddShortcut.Click += new System.EventHandler(this.pnlAddShortcut_Click); + this.lblAddShortcut.MouseEnter += new System.EventHandler(this.pnlAddShortcut_MouseEnter); + this.lblAddShortcut.MouseLeave += new System.EventHandler(this.pnlAddShortcut_MouseLeave); + // + // pnlColor + // + this.pnlColor.Controls.Add(this.numOpacDown); + this.pnlColor.Controls.Add(this.numOpacUp); + this.pnlColor.Controls.Add(this.lblPercent); + this.pnlColor.Controls.Add(this.pnlAllowOpenAll); + this.pnlColor.Controls.Add(this.lblOpacityTooltip); + this.pnlColor.Controls.Add(this.lblOpacity); + this.pnlColor.Controls.Add(this.label1); + this.pnlColor.Controls.Add(this.pnlCustomColor); + this.pnlColor.Controls.Add(this.radioCustom); + this.pnlColor.Controls.Add(this.radioDark); + this.pnlColor.Controls.Add(this.radioLight); + this.pnlColor.Location = new System.Drawing.Point(110, 544); + this.pnlColor.Name = "pnlColor"; + this.pnlColor.Size = new System.Drawing.Size(368, 164); + this.pnlColor.TabIndex = 48; + // + // numOpacDown + // + this.numOpacDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.numOpacDown.BackgroundImage = global::client.Properties.Resources.NumDownWhite; + this.numOpacDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.numOpacDown.FlatAppearance.BorderSize = 0; + this.numOpacDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.numOpacDown.Location = new System.Drawing.Point(250, 115); + this.numOpacDown.Name = "numOpacDown"; + this.numOpacDown.Size = new System.Drawing.Size(16, 8); + this.numOpacDown.TabIndex = 49; + this.numOpacDown.UseVisualStyleBackColor = false; + this.numOpacDown.Click += new System.EventHandler(this.numOpacDown_Click); + // + // numOpacUp + // + this.numOpacUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.numOpacUp.BackgroundImage = global::client.Properties.Resources.NumUpWhite; + this.numOpacUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.numOpacUp.FlatAppearance.BorderSize = 0; + this.numOpacUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.numOpacUp.Location = new System.Drawing.Point(250, 101); + this.numOpacUp.Name = "numOpacUp"; + this.numOpacUp.Size = new System.Drawing.Size(16, 8); + this.numOpacUp.TabIndex = 50; + this.numOpacUp.UseVisualStyleBackColor = false; + this.numOpacUp.Click += new System.EventHandler(this.numOpacUp_Click); + // + // lblPercent + // + this.lblPercent.AutoSize = true; + this.lblPercent.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.lblPercent.ForeColor = System.Drawing.Color.White; + this.lblPercent.Location = new System.Drawing.Point(216, 102); + this.lblPercent.Name = "lblPercent"; + this.lblPercent.Size = new System.Drawing.Size(21, 20); + this.lblPercent.TabIndex = 5; + this.lblPercent.Text = "%"; + // + // pnlAllowOpenAll + // + this.pnlAllowOpenAll.AutoSize = true; + this.pnlAllowOpenAll.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.pnlAllowOpenAll.ForeColor = System.Drawing.Color.White; + this.pnlAllowOpenAll.Location = new System.Drawing.Point(64, 131); + this.pnlAllowOpenAll.Name = "pnlAllowOpenAll"; + this.pnlAllowOpenAll.Size = new System.Drawing.Size(278, 24); + this.pnlAllowOpenAll.TabIndex = 49; + this.pnlAllowOpenAll.Text = "Allow open-all shortcuts (Ctrl + Enter)"; + this.pnlAllowOpenAll.UseVisualStyleBackColor = true; + this.pnlAllowOpenAll.CheckedChanged += new System.EventHandler(this.pnlAllowOpenAll_CheckedChanged); + // + // lblOpacityTooltip + // + this.lblOpacityTooltip.AutoSize = true; + this.lblOpacityTooltip.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.lblOpacityTooltip.ForeColor = System.Drawing.Color.White; + this.lblOpacityTooltip.Location = new System.Drawing.Point(127, 101); + this.lblOpacityTooltip.Name = "lblOpacityTooltip"; + this.lblOpacityTooltip.Size = new System.Drawing.Size(63, 20); + this.lblOpacityTooltip.TabIndex = 4; + this.lblOpacityTooltip.Text = "Opacity:"; + // + // lblOpacity + // + this.lblOpacity.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.lblOpacity.ForeColor = System.Drawing.Color.White; + this.lblOpacity.Location = new System.Drawing.Point(185, 102); + this.lblOpacity.Name = "lblOpacity"; + this.lblOpacity.Size = new System.Drawing.Size(35, 20); + this.lblOpacity.TabIndex = 50; + this.lblOpacity.Text = "10"; + this.lblOpacity.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label1 + // + this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label1.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label1.Location = new System.Drawing.Point(189, 122); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(45, 1); + this.label1.TabIndex = 49; + // + // pnlCustomColor + // + this.pnlCustomColor.Location = new System.Drawing.Point(256, 75); + this.pnlCustomColor.Name = "pnlCustomColor"; + this.pnlCustomColor.Size = new System.Drawing.Size(15, 15); + this.pnlCustomColor.TabIndex = 3; + // + // radioCustom + // + this.radioCustom.AutoSize = true; + this.radioCustom.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.radioCustom.ForeColor = System.Drawing.Color.White; + this.radioCustom.Location = new System.Drawing.Point(135, 69); + this.radioCustom.Name = "radioCustom"; + this.radioCustom.Size = new System.Drawing.Size(115, 24); + this.radioCustom.TabIndex = 2; + this.radioCustom.TabStop = true; + this.radioCustom.Text = "Custom color"; + this.radioCustom.UseVisualStyleBackColor = true; + this.radioCustom.Click += new System.EventHandler(this.radioCustom_Click); + // + // radioDark + // + this.radioDark.AutoSize = true; + this.radioDark.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.radioDark.ForeColor = System.Drawing.Color.White; + this.radioDark.Location = new System.Drawing.Point(135, 9); + this.radioDark.Name = "radioDark"; + this.radioDark.Size = new System.Drawing.Size(96, 24); + this.radioDark.TabIndex = 1; + this.radioDark.TabStop = true; + this.radioDark.Text = "Dark color"; + this.radioDark.UseVisualStyleBackColor = true; + this.radioDark.Click += new System.EventHandler(this.radioDark_Click); + // + // radioLight + // + this.radioLight.AutoSize = true; + this.radioLight.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.radioLight.ForeColor = System.Drawing.Color.White; + this.radioLight.Location = new System.Drawing.Point(135, 39); + this.radioLight.Name = "radioLight"; + this.radioLight.Size = new System.Drawing.Size(98, 24); + this.radioLight.TabIndex = 0; + this.radioLight.TabStop = true; + this.radioLight.Text = "Light color"; + this.radioLight.UseVisualStyleBackColor = true; + this.radioLight.Click += new System.EventHandler(this.radioLight_Click); + // + // cmdDelete + // + this.cmdDelete.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); + this.cmdDelete.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(148)))), ((int)(((byte)(148)))), ((int)(((byte)(148))))); + this.cmdDelete.FlatAppearance.BorderSize = 0; + this.cmdDelete.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdDelete.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cmdDelete.ForeColor = System.Drawing.Color.White; + this.cmdDelete.Location = new System.Drawing.Point(313, 7); + this.cmdDelete.Name = "cmdDelete"; + this.cmdDelete.Size = new System.Drawing.Size(129, 30); + this.cmdDelete.TabIndex = 46; + this.cmdDelete.Text = "Delete"; + this.cmdDelete.UseVisualStyleBackColor = false; + this.cmdDelete.Click += new System.EventHandler(this.cmdDelete_Click); + // + // pnlEnd + // + this.pnlEnd.Controls.Add(this.cmdDelete); + this.pnlEnd.Controls.Add(this.cmdSave); + this.pnlEnd.Controls.Add(this.cmdExit); + this.pnlEnd.Location = new System.Drawing.Point(52, 722); + this.pnlEnd.Name = "pnlEnd"; + this.pnlEnd.Size = new System.Drawing.Size(482, 44); + this.pnlEnd.TabIndex = 47; + // + // cmdWidthDown + // + this.cmdWidthDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.cmdWidthDown.BackgroundImage = global::client.Properties.Resources.NumDownWhite; + this.cmdWidthDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.cmdWidthDown.FlatAppearance.BorderSize = 0; + this.cmdWidthDown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdWidthDown.Location = new System.Drawing.Point(514, 51); + this.cmdWidthDown.Name = "cmdWidthDown"; + this.cmdWidthDown.Size = new System.Drawing.Size(16, 8); + this.cmdWidthDown.TabIndex = 42; + this.cmdWidthDown.UseVisualStyleBackColor = false; + this.cmdWidthDown.Click += new System.EventHandler(this.cmdWidthDown_Click); + // + // cmdWidthUp + // + this.cmdWidthUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.cmdWidthUp.BackgroundImage = global::client.Properties.Resources.NumUpWhite; + this.cmdWidthUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.cmdWidthUp.FlatAppearance.BorderSize = 0; + this.cmdWidthUp.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdWidthUp.Location = new System.Drawing.Point(514, 13); + this.cmdWidthUp.Name = "cmdWidthUp"; + this.cmdWidthUp.Size = new System.Drawing.Size(16, 8); + this.cmdWidthUp.TabIndex = 43; + this.cmdWidthUp.UseVisualStyleBackColor = false; + this.cmdWidthUp.Click += new System.EventHandler(this.cmdWidthUp_Click); + // + // pnlArguments + // + this.pnlArguments.Controls.Add(this.btn_selectSpecificIcon); + this.pnlArguments.Controls.Add(this.lbl_specificIcon); + this.pnlArguments.Controls.Add(this.label7); + this.pnlArguments.Controls.Add(this.label6); + this.pnlArguments.Controls.Add(this.cmdSelectDirectory); + this.pnlArguments.Controls.Add(this.label5); + this.pnlArguments.Controls.Add(this.pnlWorkingDirectory); + this.pnlArguments.Controls.Add(this.label3); + this.pnlArguments.Controls.Add(this.pnlArgumentTextbox); + this.pnlArguments.Location = new System.Drawing.Point(45, 476); + this.pnlArguments.Name = "pnlArguments"; + this.pnlArguments.Size = new System.Drawing.Size(482, 202); + this.pnlArguments.TabIndex = 48; + this.pnlArguments.Visible = false; + // + // btn_selectSpecificIcon + // + this.btn_selectSpecificIcon.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); + this.btn_selectSpecificIcon.FlatAppearance.BorderSize = 0; + this.btn_selectSpecificIcon.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btn_selectSpecificIcon.Font = new System.Drawing.Font("Segoe UI", 8F); + this.btn_selectSpecificIcon.ForeColor = System.Drawing.Color.White; + this.btn_selectSpecificIcon.Location = new System.Drawing.Point(366, 137); + this.btn_selectSpecificIcon.Name = "btn_selectSpecificIcon"; + this.btn_selectSpecificIcon.Size = new System.Drawing.Size(97, 27); + this.btn_selectSpecificIcon.TabIndex = 56; + this.btn_selectSpecificIcon.Text = "Select Icon"; + this.btn_selectSpecificIcon.UseVisualStyleBackColor = false; + this.btn_selectSpecificIcon.Click += new System.EventHandler(this.button1_Click); + // + // lbl_specificIcon + // + this.lbl_specificIcon.AutoSize = true; + this.lbl_specificIcon.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.lbl_specificIcon.ForeColor = System.Drawing.Color.White; + this.lbl_specificIcon.Location = new System.Drawing.Point(22, 121); + this.lbl_specificIcon.Name = "lbl_specificIcon"; + this.lbl_specificIcon.Size = new System.Drawing.Size(96, 20); + this.lbl_specificIcon.TabIndex = 55; + this.lbl_specificIcon.Text = "Specific Icon:"; + this.lbl_specificIcon.Click += new System.EventHandler(this.label8_Click); + // + // label7 + // + this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label7.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label7.Location = new System.Drawing.Point(26, 51); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(440, 1); + this.label7.TabIndex = 53; + // + // label6 + // + this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label6.Font = new System.Drawing.Font("Segoe UI", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(144)))), ((int)(((byte)(143)))), ((int)(((byte)(143))))); + this.label6.Location = new System.Drawing.Point(26, 103); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(335, 1); + this.label6.TabIndex = 50; + // + // cmdSelectDirectory + // + this.cmdSelectDirectory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(76)))), ((int)(((byte)(76)))), ((int)(((byte)(76))))); + this.cmdSelectDirectory.FlatAppearance.BorderSize = 0; + this.cmdSelectDirectory.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmdSelectDirectory.Font = new System.Drawing.Font("Segoe UI", 8F); + this.cmdSelectDirectory.ForeColor = System.Drawing.Color.White; + this.cmdSelectDirectory.Location = new System.Drawing.Point(367, 79); + this.cmdSelectDirectory.Name = "cmdSelectDirectory"; + this.cmdSelectDirectory.Size = new System.Drawing.Size(97, 27); + this.cmdSelectDirectory.TabIndex = 52; + this.cmdSelectDirectory.Text = "Select Directory"; + this.cmdSelectDirectory.UseVisualStyleBackColor = false; + this.cmdSelectDirectory.Click += new System.EventHandler(this.cmdSelectDirectory_Click); + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.label5.ForeColor = System.Drawing.Color.White; + this.label5.Location = new System.Drawing.Point(23, 63); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(132, 20); + this.label5.TabIndex = 51; + this.label5.Text = "Working Directory:"; + // + // pnlWorkingDirectory + // + this.pnlWorkingDirectory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.pnlWorkingDirectory.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.pnlWorkingDirectory.Enabled = false; + this.pnlWorkingDirectory.Font = new System.Drawing.Font("Segoe UI", 9F); + this.pnlWorkingDirectory.ForeColor = System.Drawing.Color.White; + this.pnlWorkingDirectory.Location = new System.Drawing.Point(26, 88); + this.pnlWorkingDirectory.Name = "pnlWorkingDirectory"; + this.pnlWorkingDirectory.Size = new System.Drawing.Size(330, 16); + this.pnlWorkingDirectory.TabIndex = 50; + this.pnlWorkingDirectory.TextChanged += new System.EventHandler(this.pnlWorkingDirectory_TextChanged); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Segoe UI", 11.25F); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(23, 11); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(84, 20); + this.label3.TabIndex = 1; + this.label3.Text = "Arguments:"; + // + // pnlArgumentTextbox + // + this.pnlArgumentTextbox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.pnlArgumentTextbox.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.pnlArgumentTextbox.Enabled = false; + this.pnlArgumentTextbox.Font = new System.Drawing.Font("Segoe UI", 9F); + this.pnlArgumentTextbox.ForeColor = System.Drawing.Color.White; + this.pnlArgumentTextbox.Location = new System.Drawing.Point(26, 33); + this.pnlArgumentTextbox.Name = "pnlArgumentTextbox"; + this.pnlArgumentTextbox.Size = new System.Drawing.Size(425, 16); + this.pnlArgumentTextbox.TabIndex = 0; + this.pnlArgumentTextbox.TextChanged += new System.EventHandler(this.pnlArgumentTextbox_TextChanged); + this.pnlArgumentTextbox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pnlArgumentTextbox_KeyDown); + // + // frmGroup + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScroll = true; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31))))); + this.ClientSize = new System.Drawing.Size(589, 821); + this.Controls.Add(this.pnlArguments); + this.Controls.Add(this.pnlEnd); + this.Controls.Add(this.pnlAddShortcut); + this.Controls.Add(this.pnlColor); + this.Controls.Add(this.lblWith); + this.Controls.Add(this.lblErrorNum); + this.Controls.Add(this.cmdWidthDown); + this.Controls.Add(this.lblNum); + this.Controls.Add(this.lblErrorIcon); + this.Controls.Add(this.lblErrorTitle); + this.Controls.Add(this.pnlShortcuts); + this.Controls.Add(this.pnlGroupIcon); + this.Controls.Add(this.label4); + this.Controls.Add(this.cmdWidthUp); + this.Controls.Add(this.label2); + this.Controls.Add(this.txtGroupName); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "frmGroup"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "New group"; + this.Load += new System.EventHandler(this.frmGroup_Load); + this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.frmGroup_MouseClick); + this.pnlGroupIcon.ResumeLayout(false); + this.pnlGroupIcon.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.cmdAddGroupIcon)).EndInit(); + this.pnlAddShortcut.ResumeLayout(false); + this.pnlAddShortcut.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.cmdAddShortcut)).EndInit(); + this.pnlColor.ResumeLayout(false); + this.pnlColor.PerformLayout(); + this.pnlEnd.ResumeLayout(false); + this.pnlArguments.ResumeLayout(false); + this.pnlArguments.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -734,5 +765,7 @@ private void InitializeComponent() private System.Windows.Forms.Button cmdSelectDirectory; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label7; - } + private System.Windows.Forms.Button btn_selectSpecificIcon; + private System.Windows.Forms.Label lbl_specificIcon; + } } \ No newline at end of file diff --git a/main/Forms/frmGroup.cs b/main/Forms/frmGroup.cs index be43763..a28dc2a 100644 --- a/main/Forms/frmGroup.cs +++ b/main/Forms/frmGroup.cs @@ -123,6 +123,7 @@ public void LoadShortcut(ProgramShortcut psc, int position) MotherForm = this, Shortcut = psc, Position = position, + logo = psc.specificLogo != null ? new Bitmap(psc.specificLogo) : null, }; pnlShortcuts.Controls.Add(ucPsc); ucPsc.Show(); @@ -350,10 +351,22 @@ private void pnlDragDropImg(object sender, DragEventArgs e) } } - private void handleIcon(String file, String imageExtension) + private void handleIcon(String file, String imageExtension, bool specific = false) { - // Checks if the files being added/dropped are an .exe or .lnk in which tye icons need to be extracted/processed - if (specialImageExt.Contains(imageExtension)) + // Checks if the files being added/dropped are an .exe or .lnk in which tye icons need to be extracted/processed + if (specific) + { + if (_selected == null) return; + if (imageExtension == ".lnk") + { + _selected.changeLogo(file); + } + else + { + _selected.changeLogo(file); + } + } + else if (specialImageExt.Contains(imageExtension)) { if (imageExtension == ".lnk") { @@ -365,8 +378,8 @@ private void handleIcon(String file, String imageExtension) } } else - { - cmdAddGroupIcon.BackgroundImage = Image.FromFile(file); + { + cmdAddGroupIcon.BackgroundImage = Image.FromFile(file); } lblAddGroupIcon.Text = "Change group icon"; } @@ -770,9 +783,9 @@ public void resetSelection() selectedShortcut = null; } } - - // Enable the argument textbox once a shortcut/program has been selected - public void enableSelection(ucProgramShortcut passedShortcut) + private ucProgramShortcut _selected; + // Enable the argument textbox once a shortcut/program has been selected + public void enableSelection(ucProgramShortcut passedShortcut) { selectedShortcut = passedShortcut; passedShortcut.ucSelected(); @@ -785,6 +798,8 @@ public void enableSelection(ucProgramShortcut passedShortcut) pnlWorkingDirectory.Enabled = true; cmdSelectDirectory.Enabled = true; + _selected = passedShortcut; + pnlColor.Visible = false; pnlArguments.Visible = true; } @@ -863,5 +878,40 @@ private void frmGroup_MouseClick(object sender, MouseEventArgs e) { resetSelection(); } - } + + private void label8_Click(object sender, EventArgs e) + { + + } + + private void button1_Click(object sender, EventArgs e) + { + resetSelection(); + + lblErrorIcon.Visible = false; //resetting error msg + + OpenFileDialog openFileDialog = new OpenFileDialog + { + InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures), + Title = "Select Specific Icon", + CheckFileExists = true, + CheckPathExists = true, + DefaultExt = "img", + Filter = "Image files and exec (*.jpg, *.jpeg, *.jpe, *.jfif, *.png, *.exe, *.ico) | *.jpg; *.jpeg; *.jpe; *.jfif; *.png; *.ico; *.exe", + FilterIndex = 2, + RestoreDirectory = true, + ReadOnlyChecked = true, + DereferenceLinks = false, + }; + + if (openFileDialog.ShowDialog() == DialogResult.OK) + { + + String imageExtension = Path.GetExtension(openFileDialog.FileName).ToLower(); + + handleIcon(openFileDialog.FileName, imageExtension, true); + } + } + } + } diff --git a/main/User controls/ucProgramShortcut.cs b/main/User controls/ucProgramShortcut.cs index 13bf4a1..a3487e9 100644 --- a/main/User controls/ucProgramShortcut.cs +++ b/main/User controls/ucProgramShortcut.cs @@ -5,6 +5,7 @@ using client.Forms; using System.IO; using System.Windows.Input; +using System.Drawing.Imaging; namespace client.User_controls { @@ -21,7 +22,6 @@ public ucProgramShortcut() { InitializeComponent(); } - private void ucProgramShortcut_Load(object sender, EventArgs e) { // Grab the file name without the extension to be used later as the naming scheme for the icon .jpg image @@ -61,18 +61,18 @@ private void ucProgramShortcut_Load(object sender, EventArgs e) // Depending on the extension, the icon can be directly extracted or it has to be gotten through other methods as to not get the shortcut arrow if (imageExtension == ".lnk") { - picShortcut.BackgroundImage = logo = frmGroup.handleLnkExt(Shortcut.FilePath); + picShortcut.BackgroundImage = logo != null ? logo : frmGroup.handleLnkExt(Shortcut.FilePath); } else { - picShortcut.BackgroundImage = logo = Icon.ExtractAssociatedIcon(Shortcut.FilePath).ToBitmap(); + picShortcut.BackgroundImage = logo != null ? logo : Icon.ExtractAssociatedIcon(Shortcut.FilePath).ToBitmap(); } } else if (Directory.Exists(Shortcut.FilePath)) { try { - picShortcut.BackgroundImage = logo = handleFolder.GetFolderIcon(Shortcut.FilePath).ToBitmap(); + picShortcut.BackgroundImage = logo != null ? logo : handleFolder.GetFolderIcon(Shortcut.FilePath).ToBitmap(); } catch (Exception ex) { @@ -96,7 +96,12 @@ private void ucProgramShortcut_Load(object sender, EventArgs e) } } - + public void changeLogo(string file) + { + logo = new Bitmap(file); + Shortcut.specificLogo = file; + this.picShortcut.BackgroundImage = logo; + } private void ucProgramShortcut_MouseEnter(object sender, EventArgs e) { ucSelected(); diff --git a/main/client.csproj b/main/client.csproj index 137d4c9..eff406f 100644 --- a/main/client.csproj +++ b/main/client.csproj @@ -54,16 +54,18 @@ Icon.ico - - ..\packages\TxFileManager.1.4.0\lib\netstandard2.0\ChinhDo.Transactions.FileManager.dll + + ..\packages\TxFileManager.1.5.0.1\lib\netstandard2.0\ChinhDo.Transactions.FileManager.dll - - ..\packages\Microsoft-WindowsAPICodePack-Core.1.1.4\lib\net472\Microsoft.WindowsAPICodePack.dll + + + ..\packages\Microsoft-WindowsAPICodePack-Core.1.1.5\lib\net472\Microsoft.WindowsAPICodePack.dll - - ..\packages\Microsoft-WindowsAPICodePack-Shell.1.1.4\lib\net472\Microsoft.WindowsAPICodePack.Shell.dll + + ..\packages\Microsoft-WindowsAPICodePack-Shell.1.1.5\lib\net472\Microsoft.WindowsAPICodePack.Shell.dll + diff --git a/main/packages.config b/main/packages.config index dbf6403..e57479d 100644 --- a/main/packages.config +++ b/main/packages.config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file