private void parseSettingsFile(string[] readText) { _GLOBAL = new UserSettings_GLOBAL(); _UDA = new UserSettings_UDA(); _DWG = new UserSettings_DWG(); _PDF = new UserSettings_PDF(); _GLOBAL.loadDefaults(); _DWG.loadDefaults(); _PDF.loadDefaults(); foreach (string setting in readText) { if (setting.StartsWith("###")) { continue; } else { string parsed = setting.Replace(" ", ""); _GLOBAL.setProperty(parsed); _UDA.setProperty(parsed); _DWG.setProperty(parsed); _PDF.setProperty(parsed); } } }
private void loadDefaultSettings() { _GLOBAL = new UserSettings_GLOBAL(); _UDA = new UserSettings_UDA(); _DWG = new UserSettings_DWG(); _PDF = new UserSettings_PDF(); _GLOBAL.loadDefaults(); _DWG.loadDefaults(); _UDA.loadDefaults(); _PDF.loadDefaults(); _PDF.loadDefaultPrinters(); }