public static ClientWatch StartNew() { ClientWatch watch = new ClientWatch(); watch.Start(); return(watch); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.clientWatch1 = new Server.ClientWatch(); this.clientWatch2 = new Server.ClientWatch(); this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); // // tableLayoutPanel1 // this.tableLayoutPanel1.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.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(this.clientWatch2, 1, 0); this.tableLayoutPanel1.Controls.Add(this.clientWatch1, 0, 0); this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 407F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(1000, 382); this.tableLayoutPanel1.TabIndex = 0; // // clientWatch1 // this.clientWatch1.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.clientWatch1.Location = new System.Drawing.Point(3, 3); this.clientWatch1.Name = "clientWatch1"; this.clientWatch1.Size = new System.Drawing.Size(494, 376); this.clientWatch1.TabIndex = 0; // // clientWatch2 // this.clientWatch2.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.clientWatch2.Location = new System.Drawing.Point(503, 3); this.clientWatch2.Name = "clientWatch2"; this.clientWatch2.Size = new System.Drawing.Size(494, 376); this.clientWatch2.TabIndex = 1; // // WatchPanel2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.tableLayoutPanel1); this.Name = "WatchPanel2"; this.Size = new System.Drawing.Size(1000, 774); this.Load += new System.EventHandler(this.WatchPanel2_Load); this.tableLayoutPanel1.ResumeLayout(false); this.ResumeLayout(false); }