using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Feeds.Interop; namespace WindowsApplication1 { public partial class Form1 : Form { //Déclaration des variables privées FeedsManager fm; IFeedFolder rootFolder; public Form1() { InitializeComponent(); // Instanciation d'un objet FeedsManager pour discuter avec Win. RSS Platform fm = new FeedsManager(); //Récupération du dossier racine de la liste rootFolder = (IFeedFolder)fm.RootFolder; //Chargez la liste des flux correspondants dans la listbox AfficherFlux(); } private void AfficherFlux() { //Réinitialiser à vide la liste des flux et la liste des posts correspondants if (listBox1.Items.Count > 0) { listBox1.Items.Clear(); listView1.Items.Clear(); } } }