public ChannelButton(Channel ch,AEControl me)
 {
     channel = ch;
     this.Text = "CH" + ch.number.ToString() + ":" + ch.name;
     this.TextAlign = ContentAlignment.MiddleLeft;
     this.Click += new EventHandler(me.chb_click);
     this.BackColor = System.Drawing.SystemColors.ButtonFace;
     me.Controls.Add(this);
     this.SuspendLayout();
     this.Location = new System.Drawing.Point(10, 100 + (ch.number * 60));
     this.Name = ch.name;
     this.Size = new System.Drawing.Size(100, 20);
     this.TabIndex = ch.number;
     //                this.PerformLayout();
 }
 public InfoPanel(Channel ch)
     : this()
 {
     ErrName.Location = new System.Drawing.Point(3, 0);
     ErrName.Size = new System.Drawing.Size(20, 50);
     this.Controls.Add(ErrName);
     this.Controls.Add(IoMeter);
     this.Controls.Add(CpuMeter);
 }
 public ChannelButton()
 {
     channel = new Channel();
 }