private void dataGridView2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     string detailid = dataGridView2.CurrentRow.Cells["WaitDetailId"].Value.ToString();
     ProductionNew.ProductionPeapleCheck w = new ProductionPeapleCheck(detailid);
     w.StartPosition = FormStartPosition.CenterScreen;
     w.ShowDialog();
 }
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.Rows.Count <= 0) return;

            string detailid = dataGridView2.CurrentRow.Cells["WaitDetailId"].Value.ToString();
            string fmid = dataGridView2.CurrentRow.Cells["FmId"].Value.ToString();
            string fmName = dataGridView2.CurrentRow.Cells["FmName"].Value.ToString();
            string quantity = dataGridView2.CurrentRow.Cells["WaitDetailQuantity"].Value.ToString();
            string waitid = dataGridView1.CurrentRow.Cells["WaitId"].Value.ToString();

            ProductionNew.ProductionPeapleCheck w = new ProductionPeapleCheck(detailid, fmid, fmName, quantity, waitid);
            w.StartPosition = FormStartPosition.CenterScreen;
            w.ShowDialog();
        }