Beispiel #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();
        }
Beispiel #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.EditConsultationForm1 = ((SystemMed.View.EditConsultationForm)(target));
                return;

            case 2:
                this.ButtonClose = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\..\View\EditConsultationForm.xaml"
                this.ButtonClose.Click += new System.Windows.RoutedEventHandler(this.buttonCancel_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.labelId = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.labelDoctor = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.panelDoctor = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 8:
                this.textBoxDoctorName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.buttonLoadDoctor = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\..\View\EditConsultationForm.xaml"
                this.buttonLoadDoctor.Click += new System.Windows.RoutedEventHandler(this.buttonLoadDoctor_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.labelPatient = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.panelPatient1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 13:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.textBoxPatientName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.textBoxPatientNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.buttonLoadPatient = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\..\View\EditConsultationForm.xaml"
                this.buttonLoadPatient.Click += new System.Windows.RoutedEventHandler(this.buttonLoadPatient_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.labelScheduleDate = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.dateTimePickerScheduleDate = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 22:
                this.label7 = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.labelScheduleTime = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.dateTimePickerScheduleTime = ((MaterialDesignThemes.Wpf.TimePicker)(target));
                return;

            case 25:
                this.labelReason = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.textBoxReason = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.labelNotes = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.textBoxNotes = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.textBoxConclusion = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.buttonSave = ((System.Windows.Controls.Button)(target));

            #line 106 "..\..\..\View\EditConsultationForm.xaml"
                this.buttonSave.Click += new System.Windows.RoutedEventHandler(this.buttonSave_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.buttonClose = ((System.Windows.Controls.Button)(target));

            #line 107 "..\..\..\View\EditConsultationForm.xaml"
                this.buttonClose.Click += new System.Windows.RoutedEventHandler(this.buttonClose_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }