예제 #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;
        }
예제 #2
0
 void approveButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (ApprovePressed != null)
     {
         ApprovePressed(this, this.redditThingFullName);
     }
 }
예제 #3
0
 void spamButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (SpamPressed != null)
     {
         SpamPressed(this, this.redditThingFullName);
     }
 }
예제 #4
0
 void contentButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (ContentPressed != null)
     {
         ContentPressed(this, redditContentUri);
     }
 }
예제 #5
0
 void ignoreButton_ButtonPressed(BasicItemBarButton sender)
 {
     if (IgnorePressed != null)
     {
         IgnorePressed(this, this.redditThingFullName);
     }
 }
예제 #6
0
 void removeButton_ButtonPressed(BasicItemBarButton sender)
 {
     printInfractions();
 }