Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Registration = ((ShopBook.registration)(target));

            #line 9 "..\..\..\Views\Registration.xaml"
                this.Registration.Loaded += new System.Windows.RoutedEventHandler(this.Registration_Loaded);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

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

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

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

            case 12:
                this.position = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 32 "..\..\..\Views\Registration.xaml"
                this.Further.Click += new System.Windows.RoutedEventHandler(this.Further_Click);

            #line default
            #line hidden
                return;

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

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

            case 16:
                this.LoginT = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 18:
                this.Delete = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\..\Views\Registration.xaml"
                this.Delete.Click += new System.Windows.RoutedEventHandler(this.Delete_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\..\Views\Registration.xaml"
                this.Change.Click += new System.Windows.RoutedEventHandler(this.Change_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.TableClientMain = ((System.Windows.Controls.DataGrid)(target));

            #line 39 "..\..\..\Views\Registration.xaml"
                this.TableClientMain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TableSellerMain_SelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.TableModeratorMain = ((System.Windows.Controls.DataGrid)(target));

            #line 40 "..\..\..\Views\Registration.xaml"
                this.TableModeratorMain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TableSellerMain_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.TableAdministratorMain = ((System.Windows.Controls.DataGrid)(target));

            #line 41 "..\..\..\Views\Registration.xaml"
                this.TableAdministratorMain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TableSellerMain_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.TableSellerMain = ((System.Windows.Controls.DataGrid)(target));

            #line 42 "..\..\..\Views\Registration.xaml"
                this.TableSellerMain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TableSellerMain_SelectionChanged);

            #line default
            #line hidden
                return;

            case 24:
                this.TypePeople = ((System.Windows.Controls.ComboBox)(target));

            #line 48 "..\..\..\Views\Registration.xaml"
                this.TypePeople.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TypePeople_SelectionChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.Refresh = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\..\Views\Registration.xaml"
                this.Refresh.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.Sales = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\..\Views\Registration.xaml"
                this.Sales.Click += new System.Windows.RoutedEventHandler(this.Sales_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.LogB = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\..\Views\Registration.xaml"
                this.LogB.Click += new System.Windows.RoutedEventHandler(this.LogB_Click);

            #line default
            #line hidden
                return;

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

            #line 57 "..\..\..\Views\Registration.xaml"
                this.Purchases.Click += new System.Windows.RoutedEventHandler(this.Purchases_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void registration(object sender, RoutedEventArgs e)
        {
            registration registration = new registration();

            registration.Show();
        }