Changeset 103
- Timestamp:
- Dec 9, 2007, 4:39:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/StatusWindow.cs
r102 r103 42 42 private Label lblCPUSystem; 43 43 private Label lblCPUIdle; 44 private Label label8; 45 private Label lblTotal; 44 46 private Bitmap memoryGraph; 45 47 … … 224 226 { 225 227 MemoryUsage u = memStats[0]; 228 lblTotal.Text = (memStats.TotalVisibleMemorySize / (1024.0)).ToString("#####0.0MB"); 226 229 lblFree.Text = (u.Available / (1048576.0)).ToString("#####0.0MB"); 227 230 lblCommited.Text = (u.Committed / (1048576.0)).ToString("#####0.0MB"); … … 255 258 this.lblCPUSystem = new System.Windows.Forms.Label(); 256 259 this.lblCPUIdle = new System.Windows.Forms.Label(); 260 this.label8 = new System.Windows.Forms.Label(); 261 this.lblTotal = new System.Windows.Forms.Label(); 257 262 ((System.ComponentModel.ISupportInitialize)(this.memoryGraphPicBox)).BeginInit(); 258 263 ((System.ComponentModel.ISupportInitialize)(this.cpuGraphPicBox)).BeginInit(); … … 286 291 this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 287 292 this.label1.AutoSize = true; 288 this.label1.Location = new System.Drawing.Point(313, 12);293 this.label1.Location = new System.Drawing.Point(313, 26); 289 294 this.label1.Name = "label1"; 290 295 this.label1.Size = new System.Drawing.Size(28, 12); … … 295 300 // 296 301 this.lblFree.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 297 this.lblFree.Location = new System.Drawing.Point(393, 12);302 this.lblFree.Location = new System.Drawing.Point(393, 26); 298 303 this.lblFree.Name = "lblFree"; 299 304 this.lblFree.Size = new System.Drawing.Size(62, 12); … … 306 311 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 307 312 this.label3.AutoSize = true; 308 this.label3.Location = new System.Drawing.Point(313, 32);313 this.label3.Location = new System.Drawing.Point(313, 44); 309 314 this.label3.Name = "label3"; 310 315 this.label3.Size = new System.Drawing.Size(56, 12); … … 316 321 this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 317 322 this.label4.AutoSize = true; 318 this.label4.Location = new System.Drawing.Point(313, 52);323 this.label4.Location = new System.Drawing.Point(313, 62); 319 324 this.label4.Name = "label4"; 320 325 this.label4.Size = new System.Drawing.Size(79, 12); … … 326 331 this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 327 332 this.label5.AutoSize = true; 328 this.label5.Location = new System.Drawing.Point(313, 72);333 this.label5.Location = new System.Drawing.Point(313, 80); 329 334 this.label5.Name = "label5"; 330 335 this.label5.Size = new System.Drawing.Size(43, 12); … … 335 340 // 336 341 this.lblCommited.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 337 this.lblCommited.Location = new System.Drawing.Point(393, 32);342 this.lblCommited.Location = new System.Drawing.Point(393, 44); 338 343 this.lblCommited.Name = "lblCommited"; 339 344 this.lblCommited.Size = new System.Drawing.Size(62, 12); … … 345 350 // 346 351 this.lblSysCache.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 347 this.lblSysCache.Location = new System.Drawing.Point(393, 52);352 this.lblSysCache.Location = new System.Drawing.Point(393, 62); 348 353 this.lblSysCache.Name = "lblSysCache"; 349 354 this.lblSysCache.Size = new System.Drawing.Size(62, 12); … … 355 360 // 356 361 this.lblSystem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 357 this.lblSystem.Location = new System.Drawing.Point(393, 72);362 this.lblSystem.Location = new System.Drawing.Point(393, 80); 358 363 this.lblSystem.Name = "lblSystem"; 359 364 this.lblSystem.Size = new System.Drawing.Size(62, 12); … … 376 381 this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 377 382 this.label6.AutoSize = true; 378 this.label6.Location = new System.Drawing.Point(313, 13 6);383 this.label6.Location = new System.Drawing.Point(313, 134); 379 384 this.label6.Name = "label6"; 380 385 this.label6.Size = new System.Drawing.Size(43, 12); … … 386 391 this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 387 392 this.label7.AutoSize = true; 388 this.label7.Location = new System.Drawing.Point(313, 15 7);393 this.label7.Location = new System.Drawing.Point(313, 152); 389 394 this.label7.Name = "label7"; 390 395 this.label7.Size = new System.Drawing.Size(23, 12); … … 395 400 // 396 401 this.lblCPUUser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 397 this.lblCPUUser.Location = new System.Drawing.Point(39 5, 116);402 this.lblCPUUser.Location = new System.Drawing.Point(393, 116); 398 403 this.lblCPUUser.Name = "lblCPUUser"; 399 404 this.lblCPUUser.Size = new System.Drawing.Size(62, 12); … … 405 410 // 406 411 this.lblCPUSystem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 407 this.lblCPUSystem.Location = new System.Drawing.Point(39 5, 136);412 this.lblCPUSystem.Location = new System.Drawing.Point(393, 134); 408 413 this.lblCPUSystem.Name = "lblCPUSystem"; 409 414 this.lblCPUSystem.Size = new System.Drawing.Size(62, 12); … … 415 420 // 416 421 this.lblCPUIdle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 417 this.lblCPUIdle.Location = new System.Drawing.Point(39 5, 157);422 this.lblCPUIdle.Location = new System.Drawing.Point(393, 152); 418 423 this.lblCPUIdle.Name = "lblCPUIdle"; 419 424 this.lblCPUIdle.Size = new System.Drawing.Size(62, 12); … … 422 427 this.lblCPUIdle.TextAlign = System.Drawing.ContentAlignment.TopRight; 423 428 // 429 // label8 430 // 431 this.label8.AutoSize = true; 432 this.label8.Location = new System.Drawing.Point(313, 8); 433 this.label8.Name = "label8"; 434 this.label8.Size = new System.Drawing.Size(31, 12); 435 this.label8.TabIndex = 10; 436 this.label8.Text = "Total"; 437 // 438 // lblTotal 439 // 440 this.lblTotal.Location = new System.Drawing.Point(393, 9); 441 this.lblTotal.Name = "lblTotal"; 442 this.lblTotal.Size = new System.Drawing.Size(62, 12); 443 this.lblTotal.TabIndex = 11; 444 this.lblTotal.Text = "00000.0MB"; 445 this.lblTotal.TextAlign = System.Drawing.ContentAlignment.TopRight; 446 // 424 447 // StatusWindow 425 448 // 426 449 this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 427 450 this.ClientSize = new System.Drawing.Size(460, 223); 451 this.Controls.Add(this.lblTotal); 452 this.Controls.Add(this.label8); 428 453 this.Controls.Add(this.lblCPUIdle); 429 454 this.Controls.Add(this.lblCPUSystem);
Note: See TracChangeset
for help on using the changeset viewer.