示例#1
0
        private void buttonAddConsultation_Click(object sender, RoutedEventArgs e)
        {
            var editConsultationForm = new EditConsultationForm(0);

            editConsultationForm.ShowDialog();
            this.Presenter.LoadConsultations();
        }
        private void buttonEdit_Click(object sender, RoutedEventArgs e)
        {
            var selectedConsultation = this.GetSelectedConsultation();

            if (selectedConsultation == null)
            {
                return;
            }

            int selectedConsultationId = selectedConsultation.ConsultationId;
            var editConsultationForm   = new EditConsultationForm(selectedConsultationId);

            editConsultationForm.ShowDialog();
            this.Presenter.LoadConsultationsByCriterias();
        }