예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //跳转到测量界面
            DataMeasurement dm = new DataMeasurement(picbt, textBox1.Text, textBox2.Text, dateTimePicker1.Text);

            dm.TopLevel        = false;
            dm.Dock            = System.Windows.Forms.DockStyle.Fill;
            dm.FormBorderStyle = FormBorderStyle.None;
            this.Parent.Controls.Add(dm);
            dm.Show();
        }
예제 #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if ((textBox1.Text != "") && (textBox2.Text != "") && (dateTimePicker1.Text != ""))
     {
         //跳转到测量界面
         DataMeasurement dm = new DataMeasurement(bt, textBox1.Text, textBox2.Text, dateTimePicker1.Text);
         dm.TopLevel        = false;
         dm.Dock            = System.Windows.Forms.DockStyle.Fill;
         dm.FormBorderStyle = FormBorderStyle.None;
         this.Parent.Controls.Add(dm);
         dm.Show();
     }
     else
     {
         //跳转到基础数据录入界面
         basicDataInput dmm = new basicDataInput(bt);
         dmm.TopLevel        = false;
         dmm.Dock            = System.Windows.Forms.DockStyle.Fill;
         dmm.FormBorderStyle = FormBorderStyle.None;
         this.Parent.Controls.Add(dmm);
         this.Dispose();
         dmm.Show();
     }
 }