Mercurial > servermonitor
diff ServerMonitor/Forms/ServerSummaryForm.Designer.cs @ 8:052aa62cb42a
Single instance. Add autorun option. Add icons. General enhancements.
author | Brad Greco <brad@bgreco.net> |
---|---|
date | Sat, 09 Mar 2019 20:14:03 -0500 |
parents | 3142e52cbe69 |
children | 9e77c0dccb66 |
line wrap: on
line diff
--- a/ServerMonitor/Forms/ServerSummaryForm.Designer.cs Fri Mar 01 21:39:22 2019 -0500 +++ b/ServerMonitor/Forms/ServerSummaryForm.Designer.cs Sat Mar 09 20:14:03 2019 -0500 @@ -32,11 +32,15 @@ this.ServerPanel = new System.Windows.Forms.FlowLayoutPanel(); this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components); 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.ToggleEnableServerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + 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.SuspendLayout(); + this.NotificationIconMenu.SuspendLayout(); this.SuspendLayout(); // // ServerPanel @@ -44,16 +48,19 @@ this.ServerPanel.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))); + this.ServerPanel.AutoScroll = true; this.ServerPanel.Location = new System.Drawing.Point(12, 12); this.ServerPanel.Name = "ServerPanel"; - this.ServerPanel.Size = new System.Drawing.Size(767, 391); + this.ServerPanel.Size = new System.Drawing.Size(648, 336); this.ServerPanel.TabIndex = 0; // // NotifyIcon // + this.NotifyIcon.ContextMenuStrip = this.NotificationIconMenu; this.NotifyIcon.Text = "Server Monitor"; this.NotifyIcon.Visible = true; this.NotifyIcon.BalloonTipClicked += new System.EventHandler(this.NotifyIcon_BalloonTipClicked); + this.NotifyIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseClick); // // ServerContextMenu // @@ -61,59 +68,86 @@ this.ToggleEnableServerMenuItem, this.DeleteServerMenuItem}); this.ServerContextMenu.Name = "ServerContextMenu"; - this.ServerContextMenu.Size = new System.Drawing.Size(181, 70); + this.ServerContextMenu.Size = new System.Drawing.Size(142, 48); this.ServerContextMenu.Opening += new System.ComponentModel.CancelEventHandler(this.ServerContextMenu_Opening); this.ServerContextMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.ServerContextMenu_ItemClicked); // + // ToggleEnableServerMenuItem + // + this.ToggleEnableServerMenuItem.Name = "ToggleEnableServerMenuItem"; + this.ToggleEnableServerMenuItem.Size = new System.Drawing.Size(141, 22); + this.ToggleEnableServerMenuItem.Text = "Disable"; + // // DeleteServerMenuItem // this.DeleteServerMenuItem.Name = "DeleteServerMenuItem"; - this.DeleteServerMenuItem.Size = new System.Drawing.Size(180, 22); + this.DeleteServerMenuItem.Size = new System.Drawing.Size(141, 22); this.DeleteServerMenuItem.Text = "Delete server"; // // SettingsButton // + this.SettingsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.SettingsButton.Image = global::ServerMonitorApp.Properties.Resources.settings; - this.SettingsButton.Location = new System.Drawing.Point(264, 409); + this.SettingsButton.Location = new System.Drawing.Point(568, 354); this.SettingsButton.Name = "SettingsButton"; this.SettingsButton.Size = new System.Drawing.Size(92, 29); this.SettingsButton.TabIndex = 1; - this.SettingsButton.Text = "Settings"; + this.SettingsButton.Text = "&Settings"; this.SettingsButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.SettingsButton.UseVisualStyleBackColor = true; this.SettingsButton.Click += new System.EventHandler(this.SettingsButton_Click); // // NewServerButton // + this.NewServerButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.NewServerButton.Image = global::ServerMonitorApp.Properties.Resources.add; - this.NewServerButton.Location = new System.Drawing.Point(12, 409); + this.NewServerButton.Location = new System.Drawing.Point(12, 354); this.NewServerButton.Name = "NewServerButton"; this.NewServerButton.Size = new System.Drawing.Size(96, 29); this.NewServerButton.TabIndex = 0; - this.NewServerButton.Text = "New server"; + this.NewServerButton.Text = "&New server"; this.NewServerButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.NewServerButton.UseVisualStyleBackColor = true; this.NewServerButton.Click += new System.EventHandler(this.NewServerButton_Click); // - // ToggleEnableServerMenuItem + // 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(181, 70); + this.NotificationIconMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.NotificationIconMenu_ItemClicked); + // + // ShowServerMonitorMenuItem // - this.ToggleEnableServerMenuItem.Name = "ToggleEnableServerMenuItem"; - this.ToggleEnableServerMenuItem.Size = new System.Drawing.Size(180, 22); - this.ToggleEnableServerMenuItem.Text = "Disable"; + 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"; + // + // ExitMenuItem + // + this.ExitMenuItem.Name = "ExitMenuItem"; + this.ExitMenuItem.Size = new System.Drawing.Size(180, 22); + this.ExitMenuItem.Text = "Exit"; // // ServerSummaryForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(672, 395); this.Controls.Add(this.SettingsButton); this.Controls.Add(this.NewServerButton); this.Controls.Add(this.ServerPanel); + this.MinimumSize = new System.Drawing.Size(240, 300); this.Name = "ServerSummaryForm"; - this.Text = "Form1"; + this.Text = "Server Monitor"; 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.ServerContextMenu.ResumeLayout(false); + this.NotificationIconMenu.ResumeLayout(false); this.ResumeLayout(false); } @@ -127,6 +161,9 @@ private System.Windows.Forms.ContextMenuStrip ServerContextMenu; private System.Windows.Forms.ToolStripMenuItem DeleteServerMenuItem; private System.Windows.Forms.ToolStripMenuItem ToggleEnableServerMenuItem; + private System.Windows.Forms.ContextMenuStrip NotificationIconMenu; + private System.Windows.Forms.ToolStripMenuItem ShowServerMonitorMenuItem; + private System.Windows.Forms.ToolStripMenuItem ExitMenuItem; } }