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); } }
public void ImportAsync(TOpmlDocument opmlDocument) { Task ImportTask = Task.Factory.StartNew(() => Import(opmlDocument)); }
public void Import(string opmlFilename) { TOpmlDocument CurrentOpml = new TOpmlDocument(opmlFilename); Import(CurrentOpml); }
public TOpmlDocument(TOpmlDocument document) { Name = document.Name; Title = document.Title; Outlines = new TOpmlOutlineCollection(document.Outlines); }