private void btnAddNewP_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         newPatient _frmNewPatient = new newPatient();
         _frmNewPatient.Show();
     }
     catch
     {
     }
 }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.AddNewPatient = ((DoctorStrange.newPatient)(target));
                return;

            case 2:
                this.txtNameOfP = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

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

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

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

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

            case 11:
                this.btnAddNewP = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\newPatient.xaml"
                this.btnAddNewP.Click += new System.Windows.RoutedEventHandler(this.btnAddNewP_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.txtAddNewP = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\newPatient.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

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