From 7538a04d2b84fa65d5e8c2020339d40202090fc9 Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Tue, 26 May 2020 12:44:23 +0300 Subject: [PATCH] .. --- GitHubNotifier/MainForm.Designer.cs | 26 ++++++++--------- .../UserControls/RepositoryEntry.Designer.cs | 28 +++++++++++-------- .../UserControls/RepositoryEntry.cs | 6 ++-- 3 files changed, 32 insertions(+), 28 deletions(-) diff --git a/GitHubNotifier/MainForm.Designer.cs b/GitHubNotifier/MainForm.Designer.cs index aadb3ff..a719258 100644 --- a/GitHubNotifier/MainForm.Designer.cs +++ b/GitHubNotifier/MainForm.Designer.cs @@ -47,8 +47,8 @@ private void InitializeComponent() this.tsmiExit = new System.Windows.Forms.ToolStripMenuItem(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.tsslblAPILimit = new System.Windows.Forms.ToolStripStatusLabel(); - this.timerNotifications = new System.Windows.Forms.Timer(this.components); this.tsslblNotifications = new System.Windows.Forms.ToolStripStatusLabel(); + this.timerNotifications = new System.Windows.Forms.Timer(this.components); this.timerAPIRateCheck = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); this.tabControl1.SuspendLayout(); @@ -68,7 +68,7 @@ private void InitializeComponent() this.panel1.Location = new System.Drawing.Point(0, 25); this.panel1.Margin = new System.Windows.Forms.Padding(2); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(692, 545); + this.panel1.Size = new System.Drawing.Size(1035, 455); this.panel1.TabIndex = 0; // // tabControl1 @@ -80,7 +80,7 @@ private void InitializeComponent() this.tabControl1.Margin = new System.Windows.Forms.Padding(2); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 2; - this.tabControl1.Size = new System.Drawing.Size(692, 545); + this.tabControl1.Size = new System.Drawing.Size(1035, 455); this.tabControl1.TabIndex = 0; // // tpRepo @@ -90,7 +90,7 @@ private void InitializeComponent() this.tpRepo.Margin = new System.Windows.Forms.Padding(2); this.tpRepo.Name = "tpRepo"; this.tpRepo.Padding = new System.Windows.Forms.Padding(2); - this.tpRepo.Size = new System.Drawing.Size(672, 383); + this.tpRepo.Size = new System.Drawing.Size(1027, 429); this.tpRepo.TabIndex = 0; this.tpRepo.Text = "Repositories"; this.tpRepo.UseVisualStyleBackColor = true; @@ -146,7 +146,7 @@ private void InitializeComponent() this.menuStrip1.Location = new System.Drawing.Point(0, 0); this.menuStrip1.Name = "menuStrip1"; this.menuStrip1.Padding = new System.Windows.Forms.Padding(4, 2, 0, 2); - this.menuStrip1.Size = new System.Drawing.Size(692, 24); + this.menuStrip1.Size = new System.Drawing.Size(1035, 24); this.menuStrip1.TabIndex = 1; this.menuStrip1.Text = "menuStrip1"; // @@ -209,10 +209,10 @@ private void InitializeComponent() this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsslblAPILimit, this.tsslblNotifications}); - this.statusStrip1.Location = new System.Drawing.Point(0, 571); + this.statusStrip1.Location = new System.Drawing.Point(0, 481); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 10, 0); - this.statusStrip1.Size = new System.Drawing.Size(692, 22); + this.statusStrip1.Size = new System.Drawing.Size(1035, 22); this.statusStrip1.TabIndex = 2; this.statusStrip1.Text = "statusStrip1"; // @@ -222,17 +222,17 @@ private void InitializeComponent() this.tsslblAPILimit.Size = new System.Drawing.Size(63, 17); this.tsslblAPILimit.Text = "API Limits:"; // - // timerNotifications - // - this.timerNotifications.Interval = 900000; - this.timerNotifications.Tick += new System.EventHandler(this.timerNotifications_Tick); - // // tsslblNotifications // this.tsslblNotifications.Name = "tsslblNotifications"; this.tsslblNotifications.Size = new System.Drawing.Size(78, 17); this.tsslblNotifications.Text = "Notifications:"; // + // timerNotifications + // + this.timerNotifications.Interval = 900000; + this.timerNotifications.Tick += new System.EventHandler(this.timerNotifications_Tick); + // // timerAPIRateCheck // this.timerAPIRateCheck.Interval = 900000; @@ -242,7 +242,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(692, 593); + this.ClientSize = new System.Drawing.Size(1035, 503); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.menuStrip1); this.Controls.Add(this.panel1); diff --git a/GitHubNotifier/UserControls/RepositoryEntry.Designer.cs b/GitHubNotifier/UserControls/RepositoryEntry.Designer.cs index 518c027..c1c67c4 100644 --- a/GitHubNotifier/UserControls/RepositoryEntry.Designer.cs +++ b/GitHubNotifier/UserControls/RepositoryEntry.Designer.cs @@ -40,9 +40,10 @@ private void InitializeComponent() // // lblDownloads // + this.lblDownloads.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblDownloads.Image = global::GitHubNotifier.Properties.Resources.Download_32x32; this.lblDownloads.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.lblDownloads.Location = new System.Drawing.Point(134, 42); + this.lblDownloads.Location = new System.Drawing.Point(366, 1); this.lblDownloads.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblDownloads.Name = "lblDownloads"; this.lblDownloads.Size = new System.Drawing.Size(134, 36); @@ -52,12 +53,13 @@ private void InitializeComponent() // // lblLikes // + this.lblLikes.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lblLikes.Image = global::GitHubNotifier.Properties.Resources.Feature_32x32; this.lblLikes.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.lblLikes.Location = new System.Drawing.Point(4, 42); + this.lblLikes.Location = new System.Drawing.Point(236, 1); this.lblLikes.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblLikes.Name = "lblLikes"; - this.lblLikes.Size = new System.Drawing.Size(126, 34); + this.lblLikes.Size = new System.Drawing.Size(126, 36); this.lblLikes.TabIndex = 1; this.lblLikes.Text = "Likes:"; this.lblLikes.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -65,10 +67,10 @@ private void InitializeComponent() // btnCheckNow // this.btnCheckNow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnCheckNow.Location = new System.Drawing.Point(434, 3); + this.btnCheckNow.Location = new System.Drawing.Point(852, 9); this.btnCheckNow.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3); this.btnCheckNow.Name = "btnCheckNow"; - this.btnCheckNow.Size = new System.Drawing.Size(105, 21); + this.btnCheckNow.Size = new System.Drawing.Size(93, 21); this.btnCheckNow.TabIndex = 2; this.btnCheckNow.Text = "Check Now"; this.btnCheckNow.UseVisualStyleBackColor = true; @@ -78,13 +80,14 @@ private void InitializeComponent() // this.lnkLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.lnkLabel.Location = new System.Drawing.Point(4, 0); + this.lnkLabel.Location = new System.Drawing.Point(4, 1); this.lnkLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lnkLabel.Name = "lnkLabel"; - this.lnkLabel.Size = new System.Drawing.Size(425, 25); + this.lnkLabel.Size = new System.Drawing.Size(228, 36); this.lnkLabel.TabIndex = 3; this.lnkLabel.TabStop = true; this.lnkLabel.Text = "N/A"; + this.lnkLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.lnkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkLabel_LinkClicked); // // timerUpdate @@ -95,20 +98,21 @@ private void InitializeComponent() // // lblNext // - this.lblNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.lblNext.Location = new System.Drawing.Point(345, 51); + this.lblNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.lblNext.Location = new System.Drawing.Point(642, 1); this.lblNext.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lblNext.Name = "lblNext"; - this.lblNext.Size = new System.Drawing.Size(194, 24); + this.lblNext.Size = new System.Drawing.Size(191, 36); this.lblNext.TabIndex = 4; this.lblNext.Text = "Next Check:"; this.lblNext.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lnklblIssues // + this.lnklblIssues.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.lnklblIssues.Image = global::GitHubNotifier.Properties.Resources.Issue_32x32; this.lnklblIssues.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.lnklblIssues.Location = new System.Drawing.Point(272, 42); + this.lnklblIssues.Location = new System.Drawing.Point(504, 1); this.lnklblIssues.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.lnklblIssues.Name = "lnklblIssues"; this.lnklblIssues.Size = new System.Drawing.Size(134, 36); @@ -130,7 +134,7 @@ private void InitializeComponent() this.Controls.Add(this.lblDownloads); this.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3); this.Name = "RepositoryEntry"; - this.Size = new System.Drawing.Size(542, 77); + this.Size = new System.Drawing.Size(947, 39); this.Load += new System.EventHandler(this.RepositoryEntry_Load); this.ResumeLayout(false); diff --git a/GitHubNotifier/UserControls/RepositoryEntry.cs b/GitHubNotifier/UserControls/RepositoryEntry.cs index 06e8238..1113428 100644 --- a/GitHubNotifier/UserControls/RepositoryEntry.cs +++ b/GitHubNotifier/UserControls/RepositoryEntry.cs @@ -21,7 +21,7 @@ public RepositoryEntry() public RepositoryEntry(RepositorySettings repo) : this() { Repo = repo; - lnkLabel.Text = repo.RepoUrl; + lnkLabel.Text = repo.DisplayName; timerUpdate.Interval = repo.UpdateMinutes * 60 * 1000; lblNext.Text = "Next check: " + DateTime.Now.AddMilliseconds(repo.UpdateMinutes * 60 * 1000); } @@ -141,7 +141,7 @@ private async void btnCheckNow_Click(object sender, EventArgs e) private void lnkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { - OpenLink(lnkLabel.Text); + OpenLink(Repo.RepoUrl); } private void lnklblIssues_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) @@ -153,7 +153,7 @@ private void OpenLink(string url) { try { - Process.Start(new ProcessStartInfo(url) {UseShellExecute = true}); + Process.Start(new ProcessStartInfo(url) { UseShellExecute = true }); } catch (Exception exception) {