Example #1
0
        private void bt_register_patient_Click(object sender, RoutedEventArgs e)
        {
            Patient_registration frm = new Patient_registration();

            frm.Show();
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Patient_registration1 = ((WpfApp2.Patient_registration)(target));
                return;

            case 2:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.tb_name = ((System.Windows.Controls.TextBox)(target));

            #line 10 "..\..\Patient_registration.xaml"
                this.tb_name.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.tb_surname = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.tb_dob = ((System.Windows.Controls.TextBox)(target));

            #line 23 "..\..\Patient_registration.xaml"
                this.tb_dob.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Date_of_birth_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.textBlock3 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 25 "..\..\Patient_registration.xaml"
                this.tb_street.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox3_TextChanged);

            #line default
            #line hidden
                return;

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

            case 11:
                this.tb_postcode = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 13:
                this.tb_emergency_phone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.textBlock4 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.tb_email = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.textBlock5 = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 33 "..\..\Patient_registration.xaml"
                this.Registerbt.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.textBlock6 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }