Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            BLTools.Log.DebugLevel = BLTools.ErrorLevel.Info;
            _ConfigDocument        = new TConfigDocument(DefaultConfigurationFile);
            TreeViewRssItem RootItem = new TreeViewRssItem(_ConfigDocument.RootGroup);

            tvChannels.ItemsSource = RootItem.Items;
        }
Esempio n. 2
0
 private void mnuFileImport_Click(object sender, RoutedEventArgs e)
 {
     System.Windows.Forms.OpenFileDialog OFD = new System.Windows.Forms.OpenFileDialog();
     if (OFD.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         if (_ConfigDocument == null)
         {
             _ConfigDocument = new TConfigDocument();
         }
         _ConfigDocument.Import(OFD.FileName);
         TreeViewRssItem RootItem = new TreeViewRssItem(_ConfigDocument.RootGroup);
         tvChannels.ItemsSource = RootItem.Items;
     }
 }