Пример #1
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter) : base(feedGetter, feedSetter, "Filter")
        {
            InitializeComponent();

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

            this.Caption = caption;
        }
Пример #3
0
        protected ExtensionTab(FeedGetter feedGetter, FeedSetter feedSetter, String caption) : base(feedGetter, feedSetter)
        {
            if (caption == null)
            {
                throw new ArgumentNullException(nameof(caption));
            }

            this.Caption = caption;
        }
Пример #4
0
        public FeedExtension(FeedGetter feedGetter, FeedSetter feedSetter)
            : base(feedGetter, feedSetter, "Filter")
        {
            InitializeComponent();

            inlineControlsMaxHeight = refreshButton.Height;
            lastInlineControlRight = preferencesButton.Right;
            inlineControlMargin = preferencesButton.Left - refreshButton.Right;
        }
Пример #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;
        }
Пример #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());
        }
Пример #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());
        }
Пример #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;
        }
Пример #9
0
 public NewsletterExtension(FeedGetter feedGetter, FeedSetter feedSetter) : base(feedGetter, feedSetter)
 {
     InitializeComponent();
 }
Пример #10
0
 public NewsletterExtension(FeedGetter feedGetter, FeedSetter feedSetter)
     : base(feedGetter, feedSetter)
 {
     InitializeComponent();
 }