Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.id = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

            case 5:
                this.posts = ((CivkacAdminTool.UserControlls.PostList)(target));
                return;

            case 6:

            #line 42 "..\..\..\UserControlls\EditUser.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.logOut = ((System.Windows.Controls.MenuItem)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.logOut.Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick);

            #line default
            #line hidden
                return;

            case 2:
                this.exit = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.exit.Click += new System.Windows.RoutedEventHandler(this.Exit_OnClick);

            #line default
            #line hidden
                return;

            case 3:
                this.newUser = ((System.Windows.Controls.MenuItem)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.newUser.Click += new System.Windows.RoutedEventHandler(this.NewUser_OnClick);

            #line default
            #line hidden
                return;

            case 4:
                this.newPost = ((System.Windows.Controls.MenuItem)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.newPost.Click += new System.Windows.RoutedEventHandler(this.NewPost_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.newReply = ((System.Windows.Controls.MenuItem)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.newReply.Click += new System.Windows.RoutedEventHandler(this.NewReply_OnClick);

            #line default
            #line hidden
                return;

            case 6:
                this.findUser = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 7:
                this.findPost = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 8:
                this.findReply = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 9:
                this.refresh = ((System.Windows.Controls.MenuItem)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.refresh.Click += new System.Windows.RoutedEventHandler(this.Refresh_OnClick);

            #line default
            #line hidden
                return;

            case 10:
                this.getReports = ((System.Windows.Controls.MenuItem)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.getReports.Click += new System.Windows.RoutedEventHandler(this.GetReports_OnClick);

            #line default
            #line hidden
                return;

            case 11:
                this.about = ((System.Windows.Controls.MenuItem)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.about.Click += new System.Windows.RoutedEventHandler(this.About_OnClick);

            #line default
            #line hidden
                return;

            case 12:
                this.usersList = ((CivkacAdminTool.UserControlls.UserList)(target));
                return;

            case 13:
                this.postList = ((CivkacAdminTool.UserControlls.PostList)(target));
                return;
            }
            this._contentLoaded = true;
        }