Example #1
0
        private void buttonAddDiagnoses_Click(object sender, RoutedEventArgs e)
        {
            var editDiagnosisForm = new EditDiagnosisForm(0);

            editDiagnosisForm.ShowDialog();
            this.Presenter.LoadDiagnoses();
        }
Example #2
0
        private void buttonEditDiagnoses_Click(object sender, RoutedEventArgs e)
        {
            var selectedDiagnosis = this.GetSelectedDiagnosis();

            if (selectedDiagnosis == null)
            {
                return;
            }

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

            editDiagnosisForm.ShowDialog();
            this.Presenter.LoadDiagnoses();
        }