Esempio n. 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            var editDiagnosisForm = new EditDiagnosisForm(0);

            editDiagnosisForm.ShowDialog();
            this.Presenter.LoadDiagnosesByCriterias();
        }
Esempio n. 2
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var selectedDiagnosis = this.GetSelectedDiagnosis();

            if (selectedDiagnosis == null)
            {
                return;
            }

            int selectedDiagnosisId = selectedDiagnosis.DiagnoseId;
            var editDiagnosisForm   = new EditDiagnosisForm(selectedDiagnosisId);

            editDiagnosisForm.ShowDialog();
        }
Esempio n. 3
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var selectedDiagnosis = this.GetSelectedDiagnosis();
            if (selectedDiagnosis == null)
            {
                return;
            }

            int selectedDiagnosisId = selectedDiagnosis.DiagnoseId;
            var editDiagnosisForm = new EditDiagnosisForm(selectedDiagnosisId);
            editDiagnosisForm.ShowDialog();
        }
Esempio n. 4
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     var editDiagnosisForm = new EditDiagnosisForm(0);
     editDiagnosisForm.ShowDialog();
     this.Presenter.LoadDiagnosesByCriterias();
 }
Esempio n. 5
0
 private void menuItemNewDiagnose_Click(object sender, EventArgs e)
 {
     var editDiagnosisForm = new EditDiagnosisForm(0);
     editDiagnosisForm.ShowDialog();
 }