Пример #1
0
 public void Import(TOpmlDocument opmlDocument)
 {
     if (opmlDocument.Load())
     {
         TConfigGroup ImportedGroup = new TConfigGroup();
         ImportedGroup.Name = opmlDocument.Name;
         foreach (TOpmlOutline OutlineItem in opmlDocument.Outlines)
         {
             ImportedGroup.ImportOpmlOutline(OutlineItem, DataFolderPath);
         }
         RootGroup.Groups.Add(ImportedGroup);
     }
     Save();
     if (ImportCompleted != null)
     {
         ImportCompleted(this, EventArgs.Empty);
     }
 }
Пример #2
0
 public void ImportAsync(TOpmlDocument opmlDocument)
 {
     Task ImportTask = Task.Factory.StartNew(() => Import(opmlDocument));
 }
Пример #3
0
        public void Import(string opmlFilename)
        {
            TOpmlDocument CurrentOpml = new TOpmlDocument(opmlFilename);

            Import(CurrentOpml);
        }
Пример #4
0
 public TOpmlDocument(TOpmlDocument document)
 {
     Name     = document.Name;
     Title    = document.Title;
     Outlines = new TOpmlOutlineCollection(document.Outlines);
 }