Mercurial > servermonitor
diff ServerMonitor/Forms/ServerSummaryForm.Designer.cs @ 10:9e77c0dccb66
Add update checker
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Mon, 08 Apr 2019 21:31:03 -0400 |
parents | 052aa62cb42a |
children | b3128fe10d57 |
line wrap: on
line diff
--- a/ServerMonitor/Forms/ServerSummaryForm.Designer.cs Mon Apr 08 21:29:54 2019 -0400 +++ b/ServerMonitor/Forms/ServerSummaryForm.Designer.cs Mon Apr 08 21:31:03 2019 -0400 @@ -31,16 +31,19 @@ this.components = new System.ComponentModel.Container(); this.ServerPanel = new System.Windows.Forms.FlowLayoutPanel(); this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components); + this.NotificationIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components); + this.ShowServerMonitorMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ServerContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.ToggleEnableServerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.DeleteServerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.SettingsButton = new System.Windows.Forms.Button(); this.NewServerButton = new System.Windows.Forms.Button(); - this.NotificationIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components); - this.ShowServerMonitorMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.UpdatePanel = new System.Windows.Forms.Panel(); + this.UpdateLabel = new System.Windows.Forms.Label(); + this.NotificationIconMenu.SuspendLayout(); this.ServerContextMenu.SuspendLayout(); - this.NotificationIconMenu.SuspendLayout(); + this.UpdatePanel.SuspendLayout(); this.SuspendLayout(); // // ServerPanel @@ -62,6 +65,28 @@ this.NotifyIcon.BalloonTipClicked += new System.EventHandler(this.NotifyIcon_BalloonTipClicked); this.NotifyIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseClick); // + // NotificationIconMenu + // + this.NotificationIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.ShowServerMonitorMenuItem, + this.ExitMenuItem}); + this.NotificationIconMenu.Name = "NotificationIconMenu"; + this.NotificationIconMenu.Size = new System.Drawing.Size(161, 48); + this.NotificationIconMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.NotificationIconMenu_ItemClicked); + // + // ShowServerMonitorMenuItem + // + this.ShowServerMonitorMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.ShowServerMonitorMenuItem.Name = "ShowServerMonitorMenuItem"; + this.ShowServerMonitorMenuItem.Size = new System.Drawing.Size(160, 22); + this.ShowServerMonitorMenuItem.Text = "Server Monitor"; + // + // ExitMenuItem + // + this.ExitMenuItem.Name = "ExitMenuItem"; + this.ExitMenuItem.Size = new System.Drawing.Size(160, 22); + this.ExitMenuItem.Text = "Exit"; + // // ServerContextMenu // this.ServerContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -110,33 +135,35 @@ this.NewServerButton.UseVisualStyleBackColor = true; this.NewServerButton.Click += new System.EventHandler(this.NewServerButton_Click); // - // NotificationIconMenu + // UpdatePanel // - this.NotificationIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ShowServerMonitorMenuItem, - this.ExitMenuItem}); - this.NotificationIconMenu.Name = "NotificationIconMenu"; - this.NotificationIconMenu.Size = new System.Drawing.Size(181, 70); - this.NotificationIconMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.NotificationIconMenu_ItemClicked); - // - // ShowServerMonitorMenuItem + this.UpdatePanel.BackColor = System.Drawing.Color.Aquamarine; + this.UpdatePanel.Controls.Add(this.UpdateLabel); + this.UpdatePanel.Dock = System.Windows.Forms.DockStyle.Top; + this.UpdatePanel.Location = new System.Drawing.Point(0, 0); + this.UpdatePanel.Name = "UpdatePanel"; + this.UpdatePanel.Size = new System.Drawing.Size(672, 22); + this.UpdatePanel.TabIndex = 0; + this.UpdatePanel.Visible = false; // - this.ShowServerMonitorMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); - this.ShowServerMonitorMenuItem.Name = "ShowServerMonitorMenuItem"; - this.ShowServerMonitorMenuItem.Size = new System.Drawing.Size(180, 22); - this.ShowServerMonitorMenuItem.Text = "Server Monitor"; + // UpdateLabel // - // ExitMenuItem - // - this.ExitMenuItem.Name = "ExitMenuItem"; - this.ExitMenuItem.Size = new System.Drawing.Size(180, 22); - this.ExitMenuItem.Text = "Exit"; + this.UpdateLabel.Cursor = System.Windows.Forms.Cursors.Hand; + this.UpdateLabel.Dock = System.Windows.Forms.DockStyle.Fill; + this.UpdateLabel.Location = new System.Drawing.Point(0, 0); + this.UpdateLabel.Name = "UpdateLabel"; + this.UpdateLabel.Size = new System.Drawing.Size(672, 22); + this.UpdateLabel.TabIndex = 0; + this.UpdateLabel.Text = "Program update available"; + this.UpdateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.UpdateLabel.Click += new System.EventHandler(this.UpdateLabel_Click); // // ServerSummaryForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(672, 395); + this.Controls.Add(this.UpdatePanel); this.Controls.Add(this.SettingsButton); this.Controls.Add(this.NewServerButton); this.Controls.Add(this.ServerPanel); @@ -146,8 +173,9 @@ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ServerSummaryForm_FormClosing); this.Load += new System.EventHandler(this.ServerSummaryForm_Load); this.ResizeEnd += new System.EventHandler(this.ServerSummaryForm_ResizeEnd); + this.NotificationIconMenu.ResumeLayout(false); this.ServerContextMenu.ResumeLayout(false); - this.NotificationIconMenu.ResumeLayout(false); + this.UpdatePanel.ResumeLayout(false); this.ResumeLayout(false); } @@ -164,6 +192,8 @@ private System.Windows.Forms.ContextMenuStrip NotificationIconMenu; private System.Windows.Forms.ToolStripMenuItem ShowServerMonitorMenuItem; private System.Windows.Forms.ToolStripMenuItem ExitMenuItem; + private System.Windows.Forms.Panel UpdatePanel; + private System.Windows.Forms.Label UpdateLabel; } }