private void ImportGroups()
 {
     foreach (Group rdcManGroup in this.groups)
     {
         var context = new ImportContext(rdcManGroup.Groups, rdcManGroup.Servers);
         context.ImportContent();
         this.Imported.AddRange(context.Imported);
     }
 }
Esempio n. 2
0
 private void ImportGroups()
 {
     foreach (Group rdcManGroup in this.groups)
     {
         var context = new ImportContext(this.persistence, rdcManGroup.Groups, rdcManGroup.Servers);
         context.ImportContent();
         this.Imported.AddRange(context.Imported);
     }
 }
        private static List<FavoriteConfigurationElement> TryImport(string fileName)
        {
            var document = new Document(fileName);
            if (!document.IsVersion22)
                throw new NotSupportedException("Rdc manager supports only version 2.2 import");

            var context = new ImportContext(document.Groups, document.Servers);
            context.ImportContent();
            return context.Imported;
        }
Esempio n. 4
0
        private List <FavoriteConfigurationElement> TryImport(string fileName)
        {
            var document = new Document(fileName);

            if (!document.IsVersion22)
            {
                throw new NotSupportedException("Rdc manager supports only version 2.2 import");
            }

            var context = new ImportContext(this.persistence, document.Groups, document.Servers);

            context.ImportContent();
            return(context.Imported);
        }