Esempio n. 1
0
        private void buttonEdit_Click(object sender, RoutedEventArgs e)
        {
            var patient = GetSelectedPatient();

            if (patient == null)
            {
                return;
            }

            int             patientId   = patient.PatientId;
            EditPatientForm patientForm = new EditPatientForm(patientId);

            patientForm.ShowDialog();
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.EditPatientForm1 = ((SystemMed.View.EditPatientForm)(target));
                return;

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

            #line 14 "..\..\..\View\EditPatientForm.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.labelMessage = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            case 9:
                this.textBoxName = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 12:
                this.textBoxNumber = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 15:
                this.dateTimePickerBirthdate = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

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

            case 19:
                this.textBoxAddress = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.panelChooseButtons = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 23:
                this.tabControlAdditionalInfo = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 24:

            #line 88 "..\..\..\View\EditPatientForm.xaml"
                ((System.Windows.Controls.Expander)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseDown);

            #line default
            #line hidden
                return;

            case 25:

            #line 92 "..\..\..\View\EditPatientForm.xaml"
                ((System.Windows.Controls.TextBlock)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseDown);

            #line default
            #line hidden
                return;

            case 26:
                this.dataGridViewConsultations = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 27:
                this.panelButtons = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 28:
                this.buttonEditConsultation = ((System.Windows.Controls.Button)(target));

            #line 125 "..\..\..\View\EditPatientForm.xaml"
                this.buttonEditConsultation.Click += new System.Windows.RoutedEventHandler(this.buttonEditConsultation_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.buttonDeleteConsultation = ((System.Windows.Controls.Button)(target));

            #line 132 "..\..\..\View\EditPatientForm.xaml"
                this.buttonDeleteConsultation.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteConsultation_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.buttonAddConsultation = ((System.Windows.Controls.Button)(target));

            #line 139 "..\..\..\View\EditPatientForm.xaml"
                this.buttonAddConsultation.Click += new System.Windows.RoutedEventHandler(this.buttonAddConsultation_Click);

            #line default
            #line hidden
                return;

            case 31:

            #line 151 "..\..\..\View\EditPatientForm.xaml"
                ((System.Windows.Controls.Expander)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseDown);

            #line default
            #line hidden
                return;

            case 32:

            #line 155 "..\..\..\View\EditPatientForm.xaml"
                ((System.Windows.Controls.TextBlock)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnMouseDown);

            #line default
            #line hidden
                return;

            case 33:
                this.dataGridViewDiagnoses = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 34:
                this.panel2 = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 35:
                this.buttonEditDiagnoses = ((System.Windows.Controls.Button)(target));

            #line 190 "..\..\..\View\EditPatientForm.xaml"
                this.buttonEditDiagnoses.Click += new System.Windows.RoutedEventHandler(this.buttonEditDiagnoses_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.buttonDeleteDiagnoses = ((System.Windows.Controls.Button)(target));

            #line 197 "..\..\..\View\EditPatientForm.xaml"
                this.buttonDeleteDiagnoses.Click += new System.Windows.RoutedEventHandler(this.buttonDeleteDiagnoses_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.buttonAddDiagnoses = ((System.Windows.Controls.Button)(target));

            #line 204 "..\..\..\View\EditPatientForm.xaml"
                this.buttonAddDiagnoses.Click += new System.Windows.RoutedEventHandler(this.buttonAddDiagnoses_Click);

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