Exemplo n.º 1
0
        private void button_Click2(object sender, EventArgs e)
        {
            Program.txtbh = (sender as Button).Tag.ToString();
            StepTestFrom stf = new StepTestFrom();

            stf.ShowDialog();
        }
Exemplo n.º 2
0
        private void button_Click(object sender, EventArgs e)
        {
            Program.type = Convert.ToInt32((sender as Button).Tag);
            StepTestFrom stf = new StepTestFrom();

            stf.ShowDialog();

            //string num_text = (sender as Button).Text;
            //if(num_text == textBoxX1.Text)
            //{
            //    Program.txtbh = num_text;
            //    StepTestFrom stf = new StepTestFrom();
            //    stf.ShowDialog();
            //    return;
            //}

            //textBoxX1.Invoke(new Action(()=> {
            //    textBoxX1.Text = (sender as Button).Text;
            //}));
        }
Exemplo n.º 3
0
        private void test_bt_Click(object sender, EventArgs e)
        {
            if (textBoxX1.Text == "")
            {
                MessageBox.Show("请输入零件号");
                return;
            }
            // 获得类型
            //Program.txtbh = textBoxX1.Text;
            Maticsoft.BLL.parts          parts_bll  = new Maticsoft.BLL.parts();
            List <Maticsoft.Model.parts> parts_mode = parts_bll.GetModelList(string.Format(" PN='{0}' ", textBoxX1.Text));

            if (parts_mode.Count <= 0)
            {
                return;
            }
            Program.type = Convert.ToInt32(parts_mode[0].componentId);

            StepTestFrom stf = new StepTestFrom();

            stf.CompId = textBoxX1.Text;
            stf.ShowDialog();
        }