private void btnAddMedicine_Click(object sender, EventArgs e)
        {
            var form = new AddDiseaseHistoryForm();

            form.DiseaseHistoryID = 0;
            form.CowNO            = CowNO;
            if (DialogResult.Yes == form.ShowDialog())
            {
                diseaseHistoryTableAdapter.Fill(farmManageDataSet.DiseaseHistory);
            }
        }
        private void dgvMedicine_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            var form = new AddDiseaseHistoryForm();

            form.DiseaseHistoryID = Convert.ToInt32(((DataRowView)fKDiseaseHistoryCow1BindingSource[e.RowIndex]).Row[0]);
            var result = form.ShowDialog();

            if (DialogResult.Yes == result)
            {
                diseaseHistoryTableAdapter.Fill(farmManageDataSet.DiseaseHistory);
            }
        }