private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            Program.type = Convert.ToInt32(textBox_ljhao.Text);
            StepTestFrom stf = new StepTestFrom();

            stf.Show();
        }
        private void 重测ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Program.type = Convert.ToInt32(textBox_ljhao.Text);
            StepTestFrom stf = new StepTestFrom();

            stf.CompId = dgv.CurrentRow.Cells["零件号"].Value.ToString();
            stf.Pn     = dgv.CurrentRow.Cells["零件号"].Value.ToString();
            //MessageBox.Show(dgv.SelectedCells.Count.ToString());
            stf.Dselect_Cells = dgv.SelectedCells;
            stf.Show();
        }