Changeset 103


Ignore:
Timestamp:
Dec 9, 2007, 4:39:55 PM (16 years ago)
Author:
rryu
Message:

Totalの表示を追加。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/StatusWindow.cs

    r102 r103  
    4242        private Label lblCPUSystem;
    4343        private Label lblCPUIdle;
     44        private Label label8;
     45        private Label lblTotal;
    4446                private Bitmap memoryGraph;
    4547
     
    224226            {
    225227                MemoryUsage u = memStats[0];
     228                lblTotal.Text = (memStats.TotalVisibleMemorySize / (1024.0)).ToString("#####0.0MB");
    226229                lblFree.Text = (u.Available / (1048576.0)).ToString("#####0.0MB");
    227230                lblCommited.Text = (u.Committed / (1048576.0)).ToString("#####0.0MB");
     
    255258            this.lblCPUSystem = new System.Windows.Forms.Label();
    256259            this.lblCPUIdle = new System.Windows.Forms.Label();
     260            this.label8 = new System.Windows.Forms.Label();
     261            this.lblTotal = new System.Windows.Forms.Label();
    257262            ((System.ComponentModel.ISupportInitialize)(this.memoryGraphPicBox)).BeginInit();
    258263            ((System.ComponentModel.ISupportInitialize)(this.cpuGraphPicBox)).BeginInit();
     
    286291            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    287292            this.label1.AutoSize = true;
    288             this.label1.Location = new System.Drawing.Point(313, 12);
     293            this.label1.Location = new System.Drawing.Point(313, 26);
    289294            this.label1.Name = "label1";
    290295            this.label1.Size = new System.Drawing.Size(28, 12);
     
    295300            //
    296301            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);
    298303            this.lblFree.Name = "lblFree";
    299304            this.lblFree.Size = new System.Drawing.Size(62, 12);
     
    306311            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    307312            this.label3.AutoSize = true;
    308             this.label3.Location = new System.Drawing.Point(313, 32);
     313            this.label3.Location = new System.Drawing.Point(313, 44);
    309314            this.label3.Name = "label3";
    310315            this.label3.Size = new System.Drawing.Size(56, 12);
     
    316321            this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    317322            this.label4.AutoSize = true;
    318             this.label4.Location = new System.Drawing.Point(313, 52);
     323            this.label4.Location = new System.Drawing.Point(313, 62);
    319324            this.label4.Name = "label4";
    320325            this.label4.Size = new System.Drawing.Size(79, 12);
     
    326331            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    327332            this.label5.AutoSize = true;
    328             this.label5.Location = new System.Drawing.Point(313, 72);
     333            this.label5.Location = new System.Drawing.Point(313, 80);
    329334            this.label5.Name = "label5";
    330335            this.label5.Size = new System.Drawing.Size(43, 12);
     
    335340            //
    336341            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);
    338343            this.lblCommited.Name = "lblCommited";
    339344            this.lblCommited.Size = new System.Drawing.Size(62, 12);
     
    345350            //
    346351            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);
    348353            this.lblSysCache.Name = "lblSysCache";
    349354            this.lblSysCache.Size = new System.Drawing.Size(62, 12);
     
    355360            //
    356361            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);
    358363            this.lblSystem.Name = "lblSystem";
    359364            this.lblSystem.Size = new System.Drawing.Size(62, 12);
     
    376381            this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    377382            this.label6.AutoSize = true;
    378             this.label6.Location = new System.Drawing.Point(313, 136);
     383            this.label6.Location = new System.Drawing.Point(313, 134);
    379384            this.label6.Name = "label6";
    380385            this.label6.Size = new System.Drawing.Size(43, 12);
     
    386391            this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    387392            this.label7.AutoSize = true;
    388             this.label7.Location = new System.Drawing.Point(313, 157);
     393            this.label7.Location = new System.Drawing.Point(313, 152);
    389394            this.label7.Name = "label7";
    390395            this.label7.Size = new System.Drawing.Size(23, 12);
     
    395400            //
    396401            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(395, 116);
     402            this.lblCPUUser.Location = new System.Drawing.Point(393, 116);
    398403            this.lblCPUUser.Name = "lblCPUUser";
    399404            this.lblCPUUser.Size = new System.Drawing.Size(62, 12);
     
    405410            //
    406411            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(395, 136);
     412            this.lblCPUSystem.Location = new System.Drawing.Point(393, 134);
    408413            this.lblCPUSystem.Name = "lblCPUSystem";
    409414            this.lblCPUSystem.Size = new System.Drawing.Size(62, 12);
     
    415420            //
    416421            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(395, 157);
     422            this.lblCPUIdle.Location = new System.Drawing.Point(393, 152);
    418423            this.lblCPUIdle.Name = "lblCPUIdle";
    419424            this.lblCPUIdle.Size = new System.Drawing.Size(62, 12);
     
    422427            this.lblCPUIdle.TextAlign = System.Drawing.ContentAlignment.TopRight;
    423428            //
     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            //
    424447            // StatusWindow
    425448            //
    426449            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    427450            this.ClientSize = new System.Drawing.Size(460, 223);
     451            this.Controls.Add(this.lblTotal);
     452            this.Controls.Add(this.label8);
    428453            this.Controls.Add(this.lblCPUIdle);
    429454            this.Controls.Add(this.lblCPUSystem);
Note: See TracChangeset for help on using the changeset viewer.