private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     strHeadId = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();
     strSta = dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString();
     strConf = dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString();
     SalePosNew.frmOwnPartStock frm = new SalePosNew.frmOwnPartStock(strHeadId, strSta, strConf);
     frm.ShowDialog();
     showHead(whereSale());
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     SalePosNew.frmOwnPartStock frm = new SalePosNew.frmOwnPartStock();
     frm.StartPosition = FormStartPosition.CenterParent;
     frm.ShowDialog();
 }