Exemple #1
0
        private void HotkeyForm_Load(object sender, EventArgs e)
        {
            // 取消快捷键的注册
            HotKey.Unbind();

            new Thread(() =>
            {
                Invoke(new MethodInvoker(() =>
                {
                    panel.Controls.AddRange(Util.Enum <HotKeyType>()
                                            .Select(type =>
                    {
                        var hotkey = HotKey.Get(type);

                        var ctrl = new HotkeyCtrl(hotkey)
                        {
                            Width = 480
                        };

                        ctrl.OnHotkeyChanged += HotkeyChanged;

                        return((Control)ctrl);
                    }
                                                    ).ToArray());
                    lbMsg.Text = resources.GetString("loaded");
                }));
            })
            {
                IsBackground = true
            }.Start();
        }
Exemple #2
0
 private ListViewItem RenderItem(ColorHistory history, ListViewGroup group)
 {
     return(new ListViewItem(group)
     {
         BackColor = history.Color,
         ForeColor = ColorUtil.GetContrastColor(history.Color),
         Text = string.Format("#{0:X2}{1:X2}{2:X2}",
                              history.Color.R,
                              history.Color.G,
                              history.Color.B),
         Tag = history.Color,
         ToolTipText = string.Format(resources.GetString("historyTipTpl"),
                                     history.DateTime, '\n', history.Source == 0 ?
                                     resources.GetString("screen") : resources.GetString("colorPicker"))
     });
 }
Exemple #3
0
        public HotkeyCtrl(HotKey hotkey)
        {
            componentsLayout();

            this.hotkey = hotkey;
            // 尝试加载多语言
            var text = resources.GetString(hotkey.HotKeyType.ToString());

            lbTypeName.Text = string.IsNullOrWhiteSpace(text) ? hotkey.Name : text;
            tbInput.Text    = GetHotkeyText(hotkey);
        }
Exemple #4
0
        private void RunCheck()
        {
            if (updateStatePresent == null)
            {
                updateStatePresent = new BackgroundWorker
                {
                    WorkerSupportsCancellation = true
                };
                updateStatePresent.DoWork             += updateStatePresent_DoWork;
                updateStatePresent.RunWorkerCompleted += updateStatePresent_RunWorkerCompleted;
            }
            if (updateStatePresent.IsBusy)
            {
                return;
            }
            Busy = true;

            updateStatePresent.RunWorkerAsync();

            this.InvokeMethod(() =>
            {
                linkNow.Visible = linkIgnore.Visible = linkNext.Visible = false;
                lbCurrent.Text  = $"{resources.GetString("currentVersion")} " + Application.ProductVersion;
                lbMsg.Text      = resources.GetString("checking");
            });

            update = OnlineUpdate.Check();

            Settings.Update.LastUpdate = DateTime.Now;

            Busy = false;
            updateStatePresent.CancelAsync();

            this.InvokeMethod(() =>
            {
                // 没有更新
                if (update == null)
                {
                    lbMsg.Text = resources.GetString("noupdate");
                    DelayHide();
                    return;
                }

                // 检查更新失败
                if (!update.Status)
                {
                    lbMsg.Text = resources.GetString("checkFailed");
                    DelayHide();
                    return;
                }

                // 检查到更新,但是已经被忽略
                if (update.Version == Settings.Update.IgnoreVersion)
                {
                    lbMsg.Text = string.Format(resources.GetString("newVersionIgnored"), update.Version);
                    DelayHide();
                    return;
                }

                // 检查到可用的更新
                lbMsg.Text = $"{resources.GetString("newVersion")} " + update.Version;


                lbUpdateDate.Text = update.Date.ToLongDateString();

                lbLog.Text = update.Message;

                Top    = Screen.PrimaryScreen.WorkingArea.Height - 240;
                Height = 240;
                pnDetail.Show();

                linkNow.Visible = linkIgnore.Visible = linkNext.Visible = true;

                // 当不是来自于自动更新时,窗口已经处于可见状态
                if (!FromAutoUpdate)
                {
                    return;
                }

                // 只有来自于自动更新时,窗口才是在检查到更新到才显示
                this.SlideIn(() =>
                {
                    this.InvokeMethod(() =>
                    {
                        Left = Util.GetScreenSize().Width - Width;
                        btnExit.Show();
                    });
                    DelayHide(15000);
                });
            });
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void componentsLayout()
 {
     this.componentsSet = new System.ComponentModel.Container();
     i18n.I18nManager resources = new i18n.I18nManager(typeof(HistoryForm));
     this.btnExit    = new System.Windows.Forms.Button();
     this.label1     = new System.Windows.Forms.Label();
     this.picLOGO    = new System.Windows.Forms.PictureBox();
     this.list       = new System.Windows.Forms.ListView();
     this.linkFile   = new System.Windows.Forms.LinkLabel();
     this.linkClear  = new System.Windows.Forms.LinkLabel();
     this.linkReload = new System.Windows.Forms.LinkLabel();
     this.tooltip    = new System.Windows.Forms.ToolTip(this.componentsSet);
     this.linkHex    = new System.Windows.Forms.LinkLabel();
     this.linkRgb    = new System.Windows.Forms.LinkLabel();
     this.label2     = new System.Windows.Forms.Label();
     this.label3     = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.picLOGO)).BeginInit();
     this.SuspendLayout();
     //
     // btnExit
     //
     this.btnExit.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExit.Text         = "×";
     this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnExit.FlatAppearance.BorderSize = 0;
     this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnExit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.btnExit.Location  = new System.Drawing.Point(573, 3);
     this.btnExit.Name      = "btnExit";
     this.btnExit.Size      = new System.Drawing.Size(24, 23);
     this.btnExit.TabIndex  = 4;
     this.btnExit.UseVisualStyleBackColor = true;
     this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(32, 8);
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(95, 12);
     this.label1.TabIndex = 15;
     //
     // picLOGO
     //
     this.picLOGO.BackColor = System.Drawing.Color.White;
     this.picLOGO.Image     = global::ColorWanted.Properties.Resources.logo;
     this.picLOGO.Location  = new System.Drawing.Point(10, 6);
     resources.ApplyResources(this.picLOGO, "picLOGO");
     this.picLOGO.Name     = "picLOGO";
     this.picLOGO.Size     = new System.Drawing.Size(16, 16);
     this.picLOGO.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picLOGO.TabIndex = 12;
     this.picLOGO.TabStop  = false;
     //
     // list
     //
     this.list.Alignment = System.Windows.Forms.ListViewAlignment.SnapToGrid;
     this.list.Anchor    = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                  | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     resources.ApplyResources(this.list, "list");
     this.list.AutoArrange      = false;
     this.list.BackColor        = System.Drawing.Color.White;
     this.list.BorderStyle      = System.Windows.Forms.BorderStyle.None;
     this.list.ForeColor        = System.Drawing.Color.Black;
     this.list.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.None;
     this.list.HideSelection    = false;
     this.list.LabelWrap        = false;
     this.list.Location         = new System.Drawing.Point(12, 32);
     this.list.MultiSelect      = false;
     this.list.Name             = "list";
     this.list.ShowItemToolTips = true;
     this.list.Size             = new System.Drawing.Size(579, 291);
     this.list.TabIndex         = 0;
     this.list.TileSize         = new System.Drawing.Size(80, 32);
     this.list.UseCompatibleStateImageBehavior = false;
     this.list.View = System.Windows.Forms.View.Tile;
     this.list.SelectedIndexChanged += new System.EventHandler(this.list_SelectedIndexChanged);
     //
     // linkFile
     //
     this.linkFile.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.linkFile.AutoSize = true;
     resources.ApplyResources(this.linkFile, "linkFile");
     this.linkFile.LinkColor    = System.Drawing.Color.Lime;
     this.linkFile.Location     = new System.Drawing.Point(438, 8);
     this.linkFile.Name         = "linkFile";
     this.linkFile.Size         = new System.Drawing.Size(53, 12);
     this.linkFile.TabIndex     = 2;
     this.linkFile.TabStop      = true;
     this.linkFile.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkFile_LinkClicked);
     //
     // linkClear
     //
     this.linkClear.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.linkClear.AutoSize = true;
     resources.ApplyResources(this.linkClear, "linkClear");
     this.linkClear.LinkColor    = System.Drawing.Color.Lime;
     this.linkClear.Location     = new System.Drawing.Point(512, 8);
     this.linkClear.Name         = "linkClear";
     this.linkClear.Size         = new System.Drawing.Size(29, 12);
     this.linkClear.TabIndex     = 3;
     this.linkClear.TabStop      = true;
     this.linkClear.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkClear_LinkClicked);
     //
     // linkReload
     //
     this.linkReload.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.linkReload.AutoSize = true;
     resources.ApplyResources(this.linkReload, "linkReload");
     this.linkReload.LinkColor    = System.Drawing.Color.Lime;
     this.linkReload.Location     = new System.Drawing.Point(389, 8);
     this.linkReload.Name         = "linkReload";
     this.linkReload.Size         = new System.Drawing.Size(29, 12);
     this.linkReload.TabIndex     = 1;
     this.linkReload.TabStop      = true;
     this.linkReload.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkReload_LinkClicked);
     //
     // linkHex
     //
     this.linkHex.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.linkHex.AutoSize = true;
     resources.ApplyResources(this.linkHex, "linkHex");
     this.linkHex.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.linkHex.Location  = new System.Drawing.Point(424, 337);
     this.linkHex.Name      = "linkHex";
     this.linkHex.Size      = new System.Drawing.Size(47, 12);
     this.linkHex.TabIndex  = 17;
     this.linkHex.TabStop   = true;
     this.linkHex.Text      = "#000000";
     this.tooltip.SetToolTip(this.linkHex, resources.GetString("linkHex.ToolTip"));
     this.linkHex.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkHex_LinkClicked);
     //
     // linkRgb
     //
     this.linkRgb.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.linkRgb.AutoSize = true;
     resources.ApplyResources(this.linkRgb, "linkRgb");
     this.linkRgb.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.linkRgb.Location  = new System.Drawing.Point(483, 337);
     this.linkRgb.Name      = "linkRgb";
     this.linkRgb.Size      = new System.Drawing.Size(65, 12);
     this.linkRgb.TabIndex  = 17;
     this.linkRgb.TabStop   = true;
     this.linkRgb.Text      = "RGB(0,0,0)";
     this.tooltip.SetToolTip(this.linkRgb, resources.GetString("linkRgb.ToolTip"));
     this.linkRgb.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkRgb_LinkClicked);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(307, 337);
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(71, 12);
     this.label2.TabIndex = 18;
     this.tooltip.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
     //
     // label3
     //
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name     = "label3";
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(12, 337);
     //
     // HistoryForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor     = System.Drawing.Color.Black;
     this.CancelButton  = this.btnExit;
     this.ClientSize    = new System.Drawing.Size(600, 360);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.linkRgb);
     this.Controls.Add(this.linkHex);
     this.Controls.Add(this.linkReload);
     this.Controls.Add(this.linkClear);
     this.Controls.Add(this.linkFile);
     this.Controls.Add(this.list);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.btnExit);
     this.Controls.Add(this.picLOGO);
     this.Font            = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HistoryForm";
     this.Opacity         = 0.8D;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Load           += new System.EventHandler(this.HistoryForm_Load);
     this.MouseDown      += new System.Windows.Forms.MouseEventHandler(this.MouseDownEventHandler);
     ((System.ComponentModel.ISupportInitialize)(this.picLOGO)).EndInit();
     this.Icon = global::ColorWanted.Properties.Resources.ico;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void componentsLayout()
 {
     this.componentsSet = new System.ComponentModel.Container();
     i18n.I18nManager resources = new i18n.I18nManager(typeof(AboutForm));
     this.label2     = new System.Windows.Forms.Label();
     this.label1     = new System.Windows.Forms.Label();
     this.lkLicense  = new System.Windows.Forms.LinkLabel();
     this.picLOGO    = new System.Windows.Forms.PictureBox();
     this.btnExit    = new System.Windows.Forms.Button();
     this.lkSite     = new System.Windows.Forms.LinkLabel();
     this.label4     = new System.Windows.Forms.Label();
     this.lkGithub   = new System.Windows.Forms.LinkLabel();
     this.toolTip    = new System.Windows.Forms.ToolTip(this.componentsSet);
     this.lkQQGroup  = new System.Windows.Forms.LinkLabel();
     this.lkVersion  = new System.Windows.Forms.LinkLabel();
     this.lkMail     = new System.Windows.Forms.LinkLabel();
     this.label3     = new System.Windows.Forms.Label();
     this.label5     = new System.Windows.Forms.Label();
     this.lkHotkey   = new System.Windows.Forms.LinkLabel();
     this.lkFeedback = new System.Windows.Forms.LinkLabel();
     this.label7     = new System.Windows.Forms.Label();
     this.label8     = new System.Windows.Forms.Label();
     this.label9     = new System.Windows.Forms.Label();
     this.label10    = new System.Windows.Forms.Label();
     this.label6     = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.picLOGO)).BeginInit();
     this.SuspendLayout();
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Font     = new System.Drawing.Font("宋体", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label2.Location = new System.Drawing.Point(23, 25);
     resources.ApplyResources(this.label2, "label2");
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(188, 22);
     this.label2.TabIndex = 1;
     this.toolTip.SetToolTip(this.label2, resources.GetString("label2.ToolTip"));
     this.label2.TextAlign  = System.Drawing.ContentAlignment.MiddleLeft;
     this.label2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.MouseDownEventHandler);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(64, 78);
     resources.ApplyResources(this.label1, "label1");
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(101, 12);
     this.label1.TabIndex = 4;
     this.toolTip.SetToolTip(this.label1, resources.GetString("label1.ToolTip"));
     this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lkLicense
     //
     this.lkLicense.AutoSize = true;
     this.lkLicense.Font     = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkLicense, "lkLicense");
     this.lkLicense.LinkColor = System.Drawing.Color.Lime;
     this.lkLicense.Location  = new System.Drawing.Point(129, 149);
     this.lkLicense.Name      = "lkLicense";
     this.lkLicense.Size      = new System.Drawing.Size(55, 15);
     this.lkLicense.TabIndex  = 9;
     this.lkLicense.TabStop   = true;
     this.lkLicense.Text      = "GPL V3";
     this.toolTip.SetToolTip(this.lkLicense, resources.GetString("lkLicense.ToolTip"));
     this.lkLicense.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.lkLicense.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkLicense.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // picLOGO
     //
     resources.ApplyResources(this.picLOGO, "picLOGO");
     this.picLOGO.BackColor = System.Drawing.Color.White;
     this.picLOGO.Image     = Properties.Resources.logo;
     this.picLOGO.Location  = new System.Drawing.Point(300, 25);
     this.picLOGO.Name      = "picLOGO";
     this.picLOGO.Size      = new System.Drawing.Size(64, 64);
     this.picLOGO.SizeMode  = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picLOGO.TabIndex  = 12;
     this.picLOGO.TabStop   = false;
     this.toolTip.SetToolTip(this.picLOGO, resources.GetString("picLOGO.ToolTip"));
     //
     // btnExit
     //
     this.btnExit.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.btnExit.Text         = "×";
     this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnExit.FlatAppearance.BorderSize = 0;
     this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.btnExit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     this.btnExit.Location  = new System.Drawing.Point(436, 3);
     this.btnExit.Name      = "btnExit";
     this.btnExit.Size      = new System.Drawing.Size(24, 23);
     this.btnExit.TabIndex  = 14;
     this.toolTip.SetToolTip(this.btnExit, resources.GetString("btnExit.ToolTip"));
     this.btnExit.UseVisualStyleBackColor = true;
     this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
     //
     // lkSite
     //
     this.lkSite.AutoSize = true;
     this.lkSite.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkSite, "lkSite");
     this.lkSite.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkSite.Location  = new System.Drawing.Point(130, 114);
     this.lkSite.Name      = "lkSite";
     this.lkSite.Size      = new System.Drawing.Size(227, 12);
     this.lkSite.TabIndex  = 7;
     this.lkSite.TabStop   = true;
     this.lkSite.Text      = "http://hyjiacan.github.io/ColorWanted";
     this.toolTip.SetToolTip(this.lkSite, resources.GetString("lkSite.ToolTip"));
     this.lkSite.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.lkSite.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkSite.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkSite_LinkClicked);
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Font     = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label4.Location = new System.Drawing.Point(58, 112);
     resources.ApplyResources(this.label4, "label4");
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(67, 15);
     this.label4.TabIndex = 4;
     this.toolTip.SetToolTip(this.label4, resources.GetString("label4.ToolTip"));
     this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lkGithub
     //
     this.lkGithub.AutoSize = true;
     resources.ApplyResources(this.lkGithub, "lkGithub");
     this.lkGithub.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkGithub.Location  = new System.Drawing.Point(130, 177);
     this.lkGithub.Name      = "lkGithub";
     this.lkGithub.Size      = new System.Drawing.Size(239, 12);
     this.lkGithub.TabIndex  = 5;
     this.lkGithub.TabStop   = true;
     this.lkGithub.Text      = "https://github.com/hyjiacan/ColorWanted";
     this.lkGithub.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.toolTip.SetToolTip(this.lkGithub, resources.GetString("lkGithub.ToolTip"));
     this.lkGithub.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkGithub.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkGithub_LinkClicked);
     //
     // lkQQGroup
     //
     this.lkQQGroup.AutoSize = true;
     this.lkQQGroup.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkQQGroup, "lkQQGroup");
     this.lkQQGroup.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkQQGroup.Location  = new System.Drawing.Point(175, 271);
     this.lkQQGroup.Name      = "lkQQGroup";
     this.lkQQGroup.Size      = new System.Drawing.Size(59, 12);
     this.lkQQGroup.TabIndex  = 7;
     this.lkQQGroup.TabStop   = true;
     this.lkQQGroup.Text      = "187786345";
     this.lkQQGroup.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.toolTip.SetToolTip(this.lkQQGroup, resources.GetString("lkQQGroup.ToolTip"));
     this.lkQQGroup.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkQQGroup.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkQQGroup_LinkClicked);
     //
     // lkVersion
     //
     this.lkVersion.AutoSize = true;
     this.lkVersion.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkVersion, "lkVersion");
     this.lkVersion.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkVersion.Location  = new System.Drawing.Point(214, 45);
     this.lkVersion.Name      = "lkVersion";
     this.lkVersion.Size      = new System.Drawing.Size(41, 12);
     this.lkVersion.TabIndex  = 7;
     this.lkVersion.TabStop   = true;
     this.lkVersion.Text      = "v1.0.0";
     this.lkVersion.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.toolTip.SetToolTip(this.lkVersion, resources.GetString("lkVersion.ToolTip"));
     this.lkVersion.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkVersion.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkVersion_LinkClicked_1);
     //
     // lkMail
     //
     this.lkMail.AutoSize = true;
     this.lkMail.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkMail, "lkMail");
     this.lkMail.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkMail.Location  = new System.Drawing.Point(175, 246);
     this.lkMail.Name      = "lkMail";
     this.lkMail.Size      = new System.Drawing.Size(101, 12);
     this.lkMail.TabIndex  = 7;
     this.lkMail.TabStop   = true;
     this.lkMail.Text      = "*****@*****.**";
     this.lkMail.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     this.toolTip.SetToolTip(this.lkMail, resources.GetString("lkMail.ToolTip"));
     this.lkMail.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkMail.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkMail_LinkClicked);
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Font     = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label3.Location = new System.Drawing.Point(58, 151);
     resources.ApplyResources(this.label3, "label3");
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(37, 15);
     this.label3.TabIndex = 4;
     this.toolTip.SetToolTip(this.label3, resources.GetString("label3.ToolTip"));
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Font     = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label5.Location = new System.Drawing.Point(58, 214);
     resources.ApplyResources(this.label5, "label5");
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(67, 15);
     this.label5.TabIndex = 4;
     this.toolTip.SetToolTip(this.label5, resources.GetString("label5.ToolTip"));
     this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lkHotkey
     //
     this.lkHotkey.AutoSize = true;
     this.lkHotkey.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkHotkey, "lkHotkey");
     this.lkHotkey.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkHotkey.Location  = new System.Drawing.Point(214, 78);
     this.lkHotkey.Name      = "lkHotkey";
     this.lkHotkey.Size      = new System.Drawing.Size(65, 12);
     this.lkHotkey.TabIndex  = 7;
     this.lkHotkey.TabStop   = true;
     this.toolTip.SetToolTip(this.lkHotkey, resources.GetString("lkHotkey.ToolTip"));
     this.lkHotkey.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.lkHotkey.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkHotkey.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkHotkey_LinkClicked);
     //
     // lkFeedback
     //
     this.lkFeedback.AutoSize = true;
     this.lkFeedback.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     resources.ApplyResources(this.lkFeedback, "lkFeedback");
     this.lkFeedback.LinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
     this.lkFeedback.Location  = new System.Drawing.Point(129, 217);
     this.lkFeedback.Name      = "lkFeedback";
     this.lkFeedback.Size      = new System.Drawing.Size(89, 12);
     this.lkFeedback.TabIndex  = 7;
     this.lkFeedback.TabStop   = true;
     this.toolTip.SetToolTip(this.lkFeedback, resources.GetString("lkFeedback.ToolTip"));
     this.lkFeedback.TextAlign        = System.Drawing.ContentAlignment.MiddleLeft;
     this.lkFeedback.VisitedLinkColor = System.Drawing.Color.Lime;
     this.lkFeedback.LinkClicked     += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lkFeedback_LinkClicked);
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label7.Location = new System.Drawing.Point(129, 271);
     resources.ApplyResources(this.label7, "label7");
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(29, 12);
     this.label7.TabIndex = 13;
     this.toolTip.SetToolTip(this.label7, resources.GetString("label7.ToolTip"));
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label8.Location = new System.Drawing.Point(94, 375);
     resources.ApplyResources(this.label8, "label8");
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(281, 12);
     this.label8.TabIndex = 13;
     this.toolTip.SetToolTip(this.label8, resources.GetString("label8.ToolTip"));
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label9.Location = new System.Drawing.Point(127, 313);
     resources.ApplyResources(this.label9, "label9");
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(257, 36);
     this.label9.TabIndex = 13;
     this.toolTip.SetToolTip(this.label9, resources.GetString("label9.ToolTip"));
     //
     // label10
     //
     this.label10.AutoSize = true;
     this.label10.Font     = new System.Drawing.Font("宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label10.Location = new System.Drawing.Point(58, 295);
     resources.ApplyResources(this.label10, "label10");
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(67, 15);
     this.label10.TabIndex = 4;
     this.toolTip.SetToolTip(this.label10, resources.GetString("label10.ToolTip"));
     this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Font     = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.label6.Location = new System.Drawing.Point(129, 246);
     resources.ApplyResources(this.label6, "label6");
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(41, 12);
     this.label6.TabIndex = 13;
     this.label6.Text     = "E-Mail";
     this.toolTip.SetToolTip(this.label6, resources.GetString("label6.ToolTip"));
     //
     // AboutForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
     resources.ApplyResources(this, "$this");
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.BackColor     = System.Drawing.Color.Black;
     this.CancelButton  = this.btnExit;
     this.ClientSize    = new System.Drawing.Size(463, 425);
     this.Controls.Add(this.btnExit);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label7);
     this.Controls.Add(this.label6);
     this.Controls.Add(this.picLOGO);
     this.Controls.Add(this.lkLicense);
     this.Controls.Add(this.lkVersion);
     this.Controls.Add(this.lkHotkey);
     this.Controls.Add(this.lkFeedback);
     this.Controls.Add(this.lkQQGroup);
     this.Controls.Add(this.lkMail);
     this.Controls.Add(this.lkSite);
     this.Controls.Add(this.lkGithub);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.label2);
     this.ForeColor       = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "AboutForm";
     this.Opacity         = 0.8D;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.toolTip.SetToolTip(this, resources.GetString("$this.ToolTip"));
     this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.MouseDownEventHandler);
     ((System.ComponentModel.ISupportInitialize)(this.picLOGO)).EndInit();
     this.Icon = Properties.Resources.ico;
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemple #7
0
 private void HotkeyChanged(HotKey hotkey)
 {
     lbMsg.Text = resources.GetString("settingSuccess");
 }