示例#1
0
 public MainConfigManager()
 {
     cmmConfigs = new UseCmmConfigs()
     {
         UseCalypso = false,
         UsePcdmis  = false
     };
 }
示例#2
0
        private void LoadUseCmmsConfig()
        {
            UseCmmConfigs cc = null;

            try
            {
                using (var sm = File.OpenRead("cmmConfigs.xml"))
                {
                    XmlSerializer xs = new XmlSerializer(typeof(UseCmmConfigs));
                    cc = xs.Deserialize(sm) as UseCmmConfigs;
                }
            }
            catch (Exception)
            {
            }
            if (cc != null)
            {
                cmmConfigs = cc;
            }
        }