Ejemplo n.º 1
0
 private void WShopManHour_Load(object sender, EventArgs e)
 {
     if (this.Text == "压力试验工时定额")
     {
         SPcontrol = new SPControl();
         SPcontrol.Dock = DockStyle.Fill;
         this.splitContainer1.Panel1.Controls.Add(SPcontrol);
     }
     else
     {
         Dcontrol = new DrawingControl();
         Dcontrol.Dock = DockStyle.Fill;
         this.splitContainer1.Panel1.Controls.Add(Dcontrol);
     }
     this.toolStripStatusLabel1.Text = string.Format(" ");
     this.toolStripStatusLabel2.Text = string.Format(" ");
 }
 private void WShopManHour_Load(object sender, EventArgs e)
 {
     if (this.Text == "压力试验工时定额")
     {
         SPcontrol      = new SPControl();
         SPcontrol.Dock = DockStyle.Fill;
         this.splitContainer1.Panel1.Controls.Add(SPcontrol);
     }
     else
     {
         Dcontrol      = new DrawingControl();
         Dcontrol.Dock = DockStyle.Fill;
         this.splitContainer1.Panel1.Controls.Add(Dcontrol);
     }
     this.toolStripStatusLabel1.Text = string.Format(" ");
     this.toolStripStatusLabel2.Text = string.Format(" ");
 }