Esempio n. 1
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter) : base(feedGetter, feedSetter, "Filter")
        {
            InitializeComponent();

            inlineControlsMaxHeight = refreshButton.Height;
            lastInlineControlRight  = preferencesButton.Right;
            inlineControlMargin     = preferencesButton.Left - refreshButton.Right;
        }
Esempio n. 2
0
        protected ExtensionTab(FeedGetter feedGetter, FeedSetter feedSetter, String caption)
            : base(feedGetter, feedSetter)
        {
            if (caption == null)
                throw new ArgumentNullException(nameof(caption));

            this.Caption = caption;
        }
Esempio n. 3
0
        protected ExtensionTab(FeedGetter feedGetter, FeedSetter feedSetter, String caption) : base(feedGetter, feedSetter)
        {
            if (caption == null)
            {
                throw new ArgumentNullException(nameof(caption));
            }

            this.Caption = caption;
        }
Esempio n. 4
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter)
            : base(feedGetter, feedSetter, "Filter")
        {
            InitializeComponent();

            inlineControlsMaxHeight = refreshButton.Height;
            lastInlineControlRight = preferencesButton.Right;
            inlineControlMargin = preferencesButton.Left - refreshButton.Right;
        }
Esempio n. 5
0
        protected ExtensionControl(FeedGetter feedGetter, FeedSetter feedSetter)
        {
            if (feedGetter == null)
                throw new ArgumentNullException(nameof(feedGetter));
            if (feedSetter == null)
                throw new ArgumentNullException(nameof(feedSetter));

            this.feedGetter = feedGetter;
            this.feedSetter = feedSetter;
        }
Esempio n. 6
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter)
            : base(feedGetter, feedSetter, "Feed")
        {
            InitializeComponent();

            inlineControlsMaxHeight = refreshButton.Height;
            lastInlineControlRight = preferencesButton.Right;
            inlineControlMargin = preferencesButton.Left - refreshButton.Right;

            var feed = (new FeedServiceClient()).GetFeed();
            feedSetter((FeedItem[])feed.Clone());
        }
Esempio n. 7
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter) : base(feedGetter, feedSetter, "Feed")
        {
            InitializeComponent();

            inlineControlsMaxHeight = refreshButton.Height;
            lastInlineControlRight  = preferencesButton.Right;
            inlineControlMargin     = preferencesButton.Left - refreshButton.Right;

            var feed = (new FeedServiceClient()).GetFeed();

            feedSetter((FeedItem[])feed.Clone());
        }
Esempio n. 8
0
        protected ExtensionControl(FeedGetter feedGetter, FeedSetter feedSetter)
        {
            if (feedGetter == null)
            {
                throw new ArgumentNullException(nameof(feedGetter));
            }
            if (feedSetter == null)
            {
                throw new ArgumentNullException(nameof(feedSetter));
            }

            this.feedGetter = feedGetter;
            this.feedSetter = feedSetter;
        }
Esempio n. 9
0
 public NewsletterExtension(FeedGetter feedGetter, FeedSetter feedSetter) : base(feedGetter, feedSetter)
 {
     InitializeComponent();
 }
Esempio n. 10
0
 public NewsletterExtension(FeedGetter feedGetter, FeedSetter feedSetter)
     : base(feedGetter, feedSetter)
 {
     InitializeComponent();
 }