Ejemplo n.º 1
0
        private void buttonAdd_Click(object sender, RoutedEventArgs e)
        {
            int          newPatientId = 0;
            EditUserForm patientForm  = new EditUserForm(newPatientId);

            patientForm.ShowDialog();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.EditUserForm1 = ((SystemMed.View.EditUserForm)(target));
                return;

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

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

            case 4:
                this.textBoxUserName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 6:
                this.textBoxPassword = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

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

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

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

            case 14:
                this.panelBottom1 = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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