Esempio n. 1
0
        public GeneralSettingsPage()
        {
            InitializeComponent();

            SettingsMappings.Add(
                new TextBoxSettingsMapping(SearchTermsKey, SearchTermsDefault, SearchTermsTextBox));
        }
        public RegexTitleNewsFilterSettingsPage()
        {
            InitializeComponent();

            SettingsMappings.Add(
                new EditableTreeViewSettingsMapping(RegexTitleTreeKey, null, RegexTitleTreeView, Rules));
        }
Esempio n. 3
0
        public BingNewsSearcherSettingsPage()
        {
            InitializeComponent();
            Console.WriteLine("BingNewsSearcherSettingsPage");

            SettingsMappings.Add(new TextBoxSettingsMapping(BingNewsAccessKeyStorageKey, "",
                                                            BingNewsAccessKeyTextBox));
        }
Esempio n. 4
0
        public RedditPostMonitorSettingsPage()
        {
            InitializeComponent();

            SettingsMappings.Add(
                new TextBoxSettingsMapping(UpvoteThreshold, null, UpvoteThresholdTextBox));
            SettingsMappings.Add(
                new TextBoxSettingsMapping(CommentTheshold, null, CommentThresholdTextBox));
        }
        public DomainRatingNewsFilterSettingsPage(IDomainRatingsSerializer serializer)
        {
            InitializeComponent();

            SettingsMappings.Add(new DataGridSettingsMapping(DomainRatingsKey,
                                                             "[]", RatingsDataGrid, serializer));
            SettingsMappings.Add(new TextBoxSettingsMapping(MinimumMonthlyVisitorsKey,
                                                            DefaultMinimumMonthlyVisitors.ToString(),
                                                            MinimumMonthlyVisitorsTextBox, TextValidator.IntegerValidator));
        }
        public OrganizationNewsFilterSettingsPage(ObservableCollection <string> filteredOrganizations)
        {
            InitializeComponent();

            FilteredOrganizations = filteredOrganizations;

            SettingsMappings.Add(
                new ObservableCollectionSettingsMapping(FilteredOrganizationsKey, null, FilteredOrganizations));

            OrganizationListBox.ItemsSource = FilteredOrganizations;
            OrganizationListBox.KeyUp      += OrganizationListBox_KeyUp;
        }
        public TwitterNewsSharerSettingsPage()
        {
            InitializeComponent();

            SettingsMappings.Add(
                new TextBoxSettingsMapping(TwitterConsumerKeyKey, null, TwitterConsumerKey));
            SettingsMappings.Add(
                new PasswordBoxSettingsMapping(TwitterConsumerSecretKey, null, TwitterConsumerSecret));
            SettingsMappings.Add(
                new TextBoxSettingsMapping(TwitterAccessTokenKey, null, TwitterAccessToken));
            SettingsMappings.Add(
                new PasswordBoxSettingsMapping(TwitterAccessTokenSecretKey, null, TwitterAccessTokenSecret));
        }
Esempio n. 8
0
        public RedditNewsSharerSettingsPage()
        {
            InitializeComponent();

            SettingsMappings.Add(
                new TextBoxSettingsMapping(RedditUsernameKey, null, RedditUsernameTextBox));
            SettingsMappings.Add(
                new PasswordBoxSettingsMapping(RedditPasswordKey, null, RedditPasswordTextBox));
            SettingsMappings.Add(
                new TextBoxSettingsMapping(RedditClientIdKey, null, RedditClientIdTextBox));
            SettingsMappings.Add(
                new PasswordBoxSettingsMapping(RedditClientSecretKey, null, RedditClientSecretTextBox));
            SettingsMappings.Add(
                new TextBoxSettingsMapping(RedditUserAgentKey, "News Sharer", RedditUserAgentTextBox));
            SettingsMappings.Add(
                new EditableTreeViewSettingsMapping(RedditDefaultSubredditsKey, null, SubredditOptionsTreeView, EditableTreeViewRules));
        }