comparison 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
comparison
equal deleted inserted replaced
9:7127d5b5ac75 10:9e77c0dccb66
29 private void InitializeComponent() 29 private void InitializeComponent()
30 { 30 {
31 this.components = new System.ComponentModel.Container(); 31 this.components = new System.ComponentModel.Container();
32 this.ServerPanel = new System.Windows.Forms.FlowLayoutPanel(); 32 this.ServerPanel = new System.Windows.Forms.FlowLayoutPanel();
33 this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components); 33 this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
34 this.NotificationIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
35 this.ShowServerMonitorMenuItem = new System.Windows.Forms.ToolStripMenuItem();
36 this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem();
34 this.ServerContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 37 this.ServerContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
35 this.ToggleEnableServerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 38 this.ToggleEnableServerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
36 this.DeleteServerMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 39 this.DeleteServerMenuItem = new System.Windows.Forms.ToolStripMenuItem();
37 this.SettingsButton = new System.Windows.Forms.Button(); 40 this.SettingsButton = new System.Windows.Forms.Button();
38 this.NewServerButton = new System.Windows.Forms.Button(); 41 this.NewServerButton = new System.Windows.Forms.Button();
39 this.NotificationIconMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 42 this.UpdatePanel = new System.Windows.Forms.Panel();
40 this.ShowServerMonitorMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 43 this.UpdateLabel = new System.Windows.Forms.Label();
41 this.ExitMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 44 this.NotificationIconMenu.SuspendLayout();
42 this.ServerContextMenu.SuspendLayout(); 45 this.ServerContextMenu.SuspendLayout();
43 this.NotificationIconMenu.SuspendLayout(); 46 this.UpdatePanel.SuspendLayout();
44 this.SuspendLayout(); 47 this.SuspendLayout();
45 // 48 //
46 // ServerPanel 49 // ServerPanel
47 // 50 //
48 this.ServerPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 51 this.ServerPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
59 this.NotifyIcon.ContextMenuStrip = this.NotificationIconMenu; 62 this.NotifyIcon.ContextMenuStrip = this.NotificationIconMenu;
60 this.NotifyIcon.Text = "Server Monitor"; 63 this.NotifyIcon.Text = "Server Monitor";
61 this.NotifyIcon.Visible = true; 64 this.NotifyIcon.Visible = true;
62 this.NotifyIcon.BalloonTipClicked += new System.EventHandler(this.NotifyIcon_BalloonTipClicked); 65 this.NotifyIcon.BalloonTipClicked += new System.EventHandler(this.NotifyIcon_BalloonTipClicked);
63 this.NotifyIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseClick); 66 this.NotifyIcon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.NotifyIcon_MouseClick);
67 //
68 // NotificationIconMenu
69 //
70 this.NotificationIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
71 this.ShowServerMonitorMenuItem,
72 this.ExitMenuItem});
73 this.NotificationIconMenu.Name = "NotificationIconMenu";
74 this.NotificationIconMenu.Size = new System.Drawing.Size(161, 48);
75 this.NotificationIconMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.NotificationIconMenu_ItemClicked);
76 //
77 // ShowServerMonitorMenuItem
78 //
79 this.ShowServerMonitorMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold);
80 this.ShowServerMonitorMenuItem.Name = "ShowServerMonitorMenuItem";
81 this.ShowServerMonitorMenuItem.Size = new System.Drawing.Size(160, 22);
82 this.ShowServerMonitorMenuItem.Text = "Server Monitor";
83 //
84 // ExitMenuItem
85 //
86 this.ExitMenuItem.Name = "ExitMenuItem";
87 this.ExitMenuItem.Size = new System.Drawing.Size(160, 22);
88 this.ExitMenuItem.Text = "Exit";
64 // 89 //
65 // ServerContextMenu 90 // ServerContextMenu
66 // 91 //
67 this.ServerContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 92 this.ServerContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
68 this.ToggleEnableServerMenuItem, 93 this.ToggleEnableServerMenuItem,
108 this.NewServerButton.Text = "&New server"; 133 this.NewServerButton.Text = "&New server";
109 this.NewServerButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; 134 this.NewServerButton.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
110 this.NewServerButton.UseVisualStyleBackColor = true; 135 this.NewServerButton.UseVisualStyleBackColor = true;
111 this.NewServerButton.Click += new System.EventHandler(this.NewServerButton_Click); 136 this.NewServerButton.Click += new System.EventHandler(this.NewServerButton_Click);
112 // 137 //
113 // NotificationIconMenu 138 // UpdatePanel
114 // 139 //
115 this.NotificationIconMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 140 this.UpdatePanel.BackColor = System.Drawing.Color.Aquamarine;
116 this.ShowServerMonitorMenuItem, 141 this.UpdatePanel.Controls.Add(this.UpdateLabel);
117 this.ExitMenuItem}); 142 this.UpdatePanel.Dock = System.Windows.Forms.DockStyle.Top;
118 this.NotificationIconMenu.Name = "NotificationIconMenu"; 143 this.UpdatePanel.Location = new System.Drawing.Point(0, 0);
119 this.NotificationIconMenu.Size = new System.Drawing.Size(181, 70); 144 this.UpdatePanel.Name = "UpdatePanel";
120 this.NotificationIconMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.NotificationIconMenu_ItemClicked); 145 this.UpdatePanel.Size = new System.Drawing.Size(672, 22);
146 this.UpdatePanel.TabIndex = 0;
147 this.UpdatePanel.Visible = false;
121 // 148 //
122 // ShowServerMonitorMenuItem 149 // UpdateLabel
123 // 150 //
124 this.ShowServerMonitorMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); 151 this.UpdateLabel.Cursor = System.Windows.Forms.Cursors.Hand;
125 this.ShowServerMonitorMenuItem.Name = "ShowServerMonitorMenuItem"; 152 this.UpdateLabel.Dock = System.Windows.Forms.DockStyle.Fill;
126 this.ShowServerMonitorMenuItem.Size = new System.Drawing.Size(180, 22); 153 this.UpdateLabel.Location = new System.Drawing.Point(0, 0);
127 this.ShowServerMonitorMenuItem.Text = "Server Monitor"; 154 this.UpdateLabel.Name = "UpdateLabel";
128 // 155 this.UpdateLabel.Size = new System.Drawing.Size(672, 22);
129 // ExitMenuItem 156 this.UpdateLabel.TabIndex = 0;
130 // 157 this.UpdateLabel.Text = "Program update available";
131 this.ExitMenuItem.Name = "ExitMenuItem"; 158 this.UpdateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
132 this.ExitMenuItem.Size = new System.Drawing.Size(180, 22); 159 this.UpdateLabel.Click += new System.EventHandler(this.UpdateLabel_Click);
133 this.ExitMenuItem.Text = "Exit";
134 // 160 //
135 // ServerSummaryForm 161 // ServerSummaryForm
136 // 162 //
137 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 163 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
138 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 164 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
139 this.ClientSize = new System.Drawing.Size(672, 395); 165 this.ClientSize = new System.Drawing.Size(672, 395);
166 this.Controls.Add(this.UpdatePanel);
140 this.Controls.Add(this.SettingsButton); 167 this.Controls.Add(this.SettingsButton);
141 this.Controls.Add(this.NewServerButton); 168 this.Controls.Add(this.NewServerButton);
142 this.Controls.Add(this.ServerPanel); 169 this.Controls.Add(this.ServerPanel);
143 this.MinimumSize = new System.Drawing.Size(240, 300); 170 this.MinimumSize = new System.Drawing.Size(240, 300);
144 this.Name = "ServerSummaryForm"; 171 this.Name = "ServerSummaryForm";
145 this.Text = "Server Monitor"; 172 this.Text = "Server Monitor";
146 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ServerSummaryForm_FormClosing); 173 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ServerSummaryForm_FormClosing);
147 this.Load += new System.EventHandler(this.ServerSummaryForm_Load); 174 this.Load += new System.EventHandler(this.ServerSummaryForm_Load);
148 this.ResizeEnd += new System.EventHandler(this.ServerSummaryForm_ResizeEnd); 175 this.ResizeEnd += new System.EventHandler(this.ServerSummaryForm_ResizeEnd);
176 this.NotificationIconMenu.ResumeLayout(false);
149 this.ServerContextMenu.ResumeLayout(false); 177 this.ServerContextMenu.ResumeLayout(false);
150 this.NotificationIconMenu.ResumeLayout(false); 178 this.UpdatePanel.ResumeLayout(false);
151 this.ResumeLayout(false); 179 this.ResumeLayout(false);
152 180
153 } 181 }
154 182
155 #endregion 183 #endregion
162 private System.Windows.Forms.ToolStripMenuItem DeleteServerMenuItem; 190 private System.Windows.Forms.ToolStripMenuItem DeleteServerMenuItem;
163 private System.Windows.Forms.ToolStripMenuItem ToggleEnableServerMenuItem; 191 private System.Windows.Forms.ToolStripMenuItem ToggleEnableServerMenuItem;
164 private System.Windows.Forms.ContextMenuStrip NotificationIconMenu; 192 private System.Windows.Forms.ContextMenuStrip NotificationIconMenu;
165 private System.Windows.Forms.ToolStripMenuItem ShowServerMonitorMenuItem; 193 private System.Windows.Forms.ToolStripMenuItem ShowServerMonitorMenuItem;
166 private System.Windows.Forms.ToolStripMenuItem ExitMenuItem; 194 private System.Windows.Forms.ToolStripMenuItem ExitMenuItem;
195 private System.Windows.Forms.Panel UpdatePanel;
196 private System.Windows.Forms.Label UpdateLabel;
167 } 197 }
168 } 198 }
169 199