コード例 #1
0
        void unmoderatedContentControl_Back(UserControls.ContentControl sender)
        {
            unmoderatedContentControl.Visibility = System.Windows.Visibility.Hidden;

            foreach (UIElement child in unModeratedStack.Children)
            {
                (child as ItemBar).changeToState(Enums.ItemBarState.FULL);
            }
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.moderatedTabButton = ((RedditModTools.UserControls.TabButton)(target));
                return;

            case 2:
                this.unmoderatedTabButton = ((RedditModTools.UserControls.TabButton)(target));
                return;

            case 3:
                this.loginTabButton = ((RedditModTools.UserControls.TabButton)(target));
                return;

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

            case 5:
                this.bar = ((RedditModTools.UserControls.ItemBar)(target));
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.full.Click += new System.Windows.RoutedEventHandler(this.full_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.focused.Click += new System.Windows.RoutedEventHandler(this.focused_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.unfoc = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.unfoc.Click += new System.Windows.RoutedEventHandler(this.unfoc_Click);

            #line default
            #line hidden
                return;

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

            case 10:
                this.popButton = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.popButton.Click += new System.Windows.RoutedEventHandler(this.popButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.unModeratedStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.unmoderatedContentControl = ((RedditModTools.UserControls.ContentControl)(target));
                return;

            case 13:
                this.loginGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.login_usernameTextbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.login_passwordTextbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.login_loginButton = ((System.Windows.Controls.Button)(target));

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

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