예제 #1
0
        public RSS()
        {
            InitializeComponent();
            compView      = Component_View.Get_Instance(); // Get the reference to the Component View item
            updateManager = Update_Manager.Get_Instance();
            //addToChannelWindow = AddToChannel.GetInstance();
            //channelWindow = new CreateChannelWindow();
            //addFeedWindow = new AddFeedWindow();
            updateManager.Set_Update_Period(5);      // Initialized to 5 sec refresh rate

            // Format the list of articles that come from the feed selected in the tree menu
            var gridView = new GridView();

            gridView.Columns.Add(new GridViewColumn {
                Header = "Read", DisplayMemberBinding = new Binding("Read"), Width = 50
            });
            gridView.Columns.Add(new GridViewColumn {
                Header = "Date", DisplayMemberBinding = new Binding("Date"), Width = 125
            });
            gridView.Columns.Add(new GridViewColumn {
                Header = "Title", DisplayMemberBinding = new Binding("Title"), Width = 600
            });
            this.articleList.View         = gridView;
            articleList.SelectionChanged += ArticleListItem_Clicked;    // Maps the list view being clicked to a handler
            treeView.AllowDrop            = true;

            summaryBox.IsReadOnly = true;               // Making sure the user can't edit the summary shown in UI
            //addToChannelWindow.OnComponentMoved += this.OnAddToChannelWindowClose;
        }