public MainConfigManager() { cmmConfigs = new UseCmmConfigs() { UseCalypso = false, UsePcdmis = false }; }
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; } }