Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.spamButton = ((RedditModTools.UserControls.BasicItemBarButton)(target));
                return;

            case 2:
                this.removeButton = ((RedditModTools.UserControls.BasicItemBarButton)(target));
                return;

            case 3:
                this.contentButton = ((RedditModTools.UserControls.BasicItemBarButton)(target));
                return;

            case 4:
                this.approveButton = ((RedditModTools.UserControls.BasicItemBarButton)(target));
                return;

            case 5:
                this.ignoreButton = ((RedditModTools.UserControls.BasicItemBarButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void approveButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (ApprovePressed != null)
     {
         ApprovePressed(this, this.redditThingFullName);
     }
 }
 void spamButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (SpamPressed != null)
     {
         SpamPressed(this, this.redditThingFullName);
     }
 }
 void contentButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (ContentPressed != null)
     {
         ContentPressed(this, redditContentUri);
     }
 }
 void ignoreButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (IgnorePressed != null)
     {
         IgnorePressed(this, this.redditThingFullName);
     }
 }
 void removeButton_ButtonPressed(BasicItemBarButton sender)
 {
     printInfractions();
 }