public void refresh_all()
        {
            here.Children.Remove(all_users);
            one_user_control one_all_users = new one_user_control();

            one_all_users.Name = "all_users";
            here.Children.Add(one_all_users);
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ButtonFechar = ((System.Windows.Controls.Button)(target));
                return;

            case 2:
                this.GridMenu = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 61 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected_2);

            #line default
            #line hidden
                return;

            case 6:

            #line 68 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected_1);

            #line default
            #line hidden
                return;

            case 7:

            #line 77 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected_3);

            #line default
            #line hidden
                return;

            case 8:

            #line 115 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected);

            #line default
            #line hidden
                return;

            case 9:
                this.ban_page = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:

            #line 146 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 11:

            #line 149 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 12:
                this.here = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.all_users = ((Car_project.one_user_control)(target));
                return;

            case 14:
                this.banned_users = ((Car_project.one_banned_user_control)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonMinimize_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 43 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Buttonclose_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.feedback = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.ban_page = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.admin_button = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.admin_button.Click += new System.Windows.RoutedEventHandler(this.admin_button_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.all_users_button = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.all_users_button.Click += new System.Windows.RoutedEventHandler(this.all_users_button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.banned_button = ((System.Windows.Controls.Button)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.banned_button.Click += new System.Windows.RoutedEventHandler(this.banned_button_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.here = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.all_users = ((Car_project.one_user_control)(target));
                return;

            case 10:
                this.banned_users = ((Car_project.one_banned_user_control)(target));
                return;

            case 11:
                this.admin = ((Car_project.one_for_all_admin)(target));
                return;

            case 12:
                this.GridMenu = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 85 "..\..\MainWindow.xaml"
                this.ButtonCloseMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonCloseMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 88 "..\..\MainWindow.xaml"
                this.ButtonOpenMenu.Click += new System.Windows.RoutedEventHandler(this.ButtonOpenMenu_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 100 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected_3);

            #line default
            #line hidden
                return;

            case 16:

            #line 109 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected_4);

            #line default
            #line hidden
                return;

            case 17:

            #line 115 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.ListViewItem)(target)).Selected += new System.Windows.RoutedEventHandler(this.ListViewItem_Selected);

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