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