Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ClientsWindow = ((FitnessCenterApplication.Window3)(target));
                return;

            case 2:
                this.ClientsDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

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

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

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

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

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

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

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

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

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

            case 12:
                this.AddClientButton = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\Window3.xaml"
                this.AddClientButton.Click += new System.Windows.RoutedEventHandler(this.AddClientButton_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\Window3.xaml"
                this.DeleteClientButton.Click += new System.Windows.RoutedEventHandler(this.DeleteClientButton_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.ChangeClientButton = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\Window3.xaml"
                this.ChangeClientButton.Click += new System.Windows.RoutedEventHandler(this.ChangeClientButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.InfoItem = ((System.Windows.Controls.MenuItem)(target));

            #line 24 "..\..\Window3.xaml"
                this.InfoItem.Click += new System.Windows.RoutedEventHandler(this.InfoItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.ReloadItem = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\Window3.xaml"
                this.ReloadItem.Click += new System.Windows.RoutedEventHandler(this.ReloadIten_Click);

            #line default
            #line hidden
                return;

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

            case 18:
                this.NewAddress_textbox = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 20:
                this.NewPhone_textbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.NewPatronymic_textbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.NewName_textbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.NewSurname_textbox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        private void ClientsButton_Click(object sender, RoutedEventArgs e)
        {
            Window3 window3 = new Window3();

            window3.Show();
        }