private void gridStabilityCheck_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            StabilityCheck op = new StabilityCheck();

            if (gridStabilityCheck.SelectedCells.Count > 0)
            {
                int             index = gridStabilityCheck.SelectedCells[0].RowIndex;
                DataGridViewRow s     = gridStabilityCheck.Rows[index];
                op.Id          = Convert.ToInt32(s.Cells["Id"].Value);
                op.BatchId     = Convert.ToInt32(s.Cells["BatchId"].Value);
                op.ChamberId   = Convert.ToInt32(s.Cells["ChamberId"].Value);
                op.ProductId   = Convert.ToInt32(s.Cells["ProductId"].Value);
                op.StudyReason = s.Cells["StudyReason"].Value.ToString();
                op.ProtocolNo  = s.Cells["ProtocolNo"].Value.ToString();
                op.Remark      = s.Cells["Remark"].Value.ToString();
                op.M1          = s.Cells["M1"].Value.ToString();
                op.M2          = s.Cells["M2"].Value.ToString();
                op.M3          = s.Cells["M3"].Value.ToString();
                op.M6          = s.Cells["M6"].Value.ToString();
                op.M9          = s.Cells["M9"].Value.ToString();
                op.M12         = s.Cells["M12"].Value.ToString();
                op.M18         = s.Cells["M18"].Value.ToString();
                op.M24         = s.Cells["M24"].Value.ToString();
                op.M30         = s.Cells["M30"].Value.ToString();
                op.M36         = s.Cells["M36"].Value.ToString();
                op.M42         = s.Cells["M42"].Value.ToString();
                op.M48         = s.Cells["M48"].Value.ToString();
                op.M60         = s.Cells["M60"].Value.ToString();
                op.M72         = s.Cells["M72"].Value.ToString();
            }
            frmStabilityCheck p = new frmStabilityCheck(op);

            p.ShowDialog();
        }
        private void lnkAddStabilityCheck_Click(object sender, EventArgs e)
        {
            frmStabilityCheck fr = new frmStabilityCheck();

            fr.ShowDialog();
        }