public static DomainConfigList Load(string path)
 {
     DomainConfigList domainConfigList;
     try
     {
         XmlSerializer mySerializer = new XmlSerializer(typeof (DomainConfigList));
         FileStream myFileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
         domainConfigList = ((DomainConfigList) (mySerializer.Deserialize(myFileStream)));
         myFileStream.Close();
     }
     catch (Exception)
     {
         domainConfigList = new DomainConfigList() ;
     }
     return domainConfigList;
 }
예제 #2
0
        public static DomainConfigList Load(string path)
        {
            DomainConfigList domainConfigList;

            try
            {
                XmlSerializer mySerializer = new XmlSerializer(typeof(DomainConfigList));
                FileStream    myFileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
                domainConfigList = ((DomainConfigList)(mySerializer.Deserialize(myFileStream)));
                myFileStream.Close();
            }
            catch (Exception)
            {
                domainConfigList = new DomainConfigList();
            }
            return(domainConfigList);
        }
예제 #3
0
 private void LoadDomainConfigList()
 {
     domainConfigList = DomainConfigList.Load(domainConfigListPath);
 }
예제 #4
0
 public static void LoadDomainConfigList()
 {
     domainConfigList = DomainConfigList.Load(domainConfigListPath);
 }
예제 #5
0
 private void LoadDomainConfigList()
 {
     domainConfigList = DomainConfigList.Load(domainConfigListPath);
 }