public static void AddCounterItem(CounterInfo info, SysMonitorControlEx monitor)
        {
            CounterItem item =
                monitor.Counters.Add(info.FinalPath);

            item.Color     = (uint)info.Colornum;
            item.LineStyle = info.LineStyle;
//			item.ScaleFactor= info.Scale;
            item.Width = info.Width;
            info.Tag   = item;
        }
示例#2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PerfMonForm));
            this.panel1 = new System.Windows.Forms.Panel();
            this.mon1   = new PerfPlus.Controls.SysMonitorControlEx();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.mon1)).BeginInit();
            this.SuspendLayout();
            //
            // panel1
            //
            this.panel1.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.panel1.Controls.Add(this.mon1);
            this.panel1.Location = new System.Drawing.Point(13, 13);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(542, 428);
            this.panel1.TabIndex = 0;
            //
            // mon1
            //
            this.mon1.ContainingControl = this;
            this.mon1.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.mon1.Enabled      = true;
            this.mon1.FocusManager = null;
            this.mon1.Location     = new System.Drawing.Point(0, 0);
            this.mon1.Name         = "mon1";
            this.mon1.OcxState     = ((System.Windows.Forms.AxHost.State)(resources.GetObject("mon1.OcxState")));
            this.mon1.Size         = new System.Drawing.Size(542, 428);
            this.mon1.TabIndex     = 0;
            //
            // PerfMonForm
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.ClientSize        = new System.Drawing.Size(568, 454);
            this.Controls.Add(this.panel1);
            this.Name = "PerfMonForm";
            this.Text = "Monitor";

            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.mon1)).EndInit();
            this.ResumeLayout(false);
        }
示例#3
0
 private void sysMonHelper_RequestSysMonitorObject(out SysMonitorControlEx RequiredMonitor)
 {
     RequiredMonitor = monView.ActiveMonitorControl;
 }