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; }
public void AddNewMonitorTab(string title) { TabPage tab = new TabPage(title); tab.Visible=true; SysMonitorControlEx mon = new SysMonitorControlEx(); tab.Controls.Add(mon); mon.Dock=DockStyle.Fill; mon.ContextMenu= tabMenu; mon.Visible=true; mon.ContainingControl=this; tabs.TabPages.Add(tab); tabs.SelectedTab=tab; mon.Highlight=true; mon.ShowHorizontalGrid=true; mon.ShowVerticalGrid=true; }
public void AddNewMonitorTab(string title) { TabPage tab = new TabPage(title); tab.Visible = true; SysMonitorControlEx mon = new SysMonitorControlEx(); tab.Controls.Add(mon); mon.Dock = DockStyle.Fill; mon.ContextMenu = tabMenu; mon.Visible = true; mon.ContainingControl = this; tabs.TabPages.Add(tab); tabs.SelectedTab = tab; mon.Highlight = true; mon.ShowHorizontalGrid = true; mon.ShowVerticalGrid = true; }
private void sysMonHelper_RequestSysMonitorObject(out SysMonitorControlEx RequiredMonitor) { RequiredMonitor = monView.ActiveMonitorControl; }
/// <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); }
private void sysmonHelp_RequestSysMonitorObject(out SysMonitorControlEx RequiredMonitor) { if(ActiveMdiChild==null) { RequiredMonitor = null; return; } PerfMonForm form = (PerfMonForm) ActiveMdiChild; RequiredMonitor = form.MonitorControl; }