Beispiel #1
0
        private void buttonDiseaseAdd_Click(object sender, EventArgs e)
        {
            FormDiseaseDetail formDiseaseDetail = new FormDiseaseDetail();

            formDiseaseDetail.ShowDialog();

            refreshDataViewDisease();
        }
Beispiel #2
0
        private void dataViewDisease_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataViewDisease.SelectedRows.Count > 0)
            {
                int diseaseID = Convert.ToInt16(dataViewDisease.SelectedRows[0].Cells[0].Value);
                FormDiseaseDetail formDiseaseDetail = new FormDiseaseDetail(Disease.GetDisease(diseaseID), "edit");
                formDiseaseDetail.ShowDialog();

                refreshDataViewDisease();
            }
        }
Beispiel #3
0
        private void buttonDiseaseEdit_Click(object sender, EventArgs e)
        {
            if (dataViewDisease.SelectedRows.Count > 0)
            {
                int diseaseID = Convert.ToInt16(dataViewDisease.SelectedRows[0].Cells[0].Value);
                FormDiseaseDetail formDiseaseDetail = new FormDiseaseDetail(Disease.GetDisease(diseaseID), "edit");
                formDiseaseDetail.ShowDialog();

                refreshDataViewDisease();
            }
        }
Beispiel #4
0
        private void buttonDiseaseAdd_Click(object sender, EventArgs e)
        {
            FormDiseaseDetail formDiseaseDetail = new FormDiseaseDetail();
            formDiseaseDetail.ShowDialog();

            refreshDataViewDisease();
        }