private void InitProcessConfig() { if (!File.Exists(this.FileName)) { if (!Directory.Exists(folderName)) { Directory.CreateDirectory(folderName); } File.Create(this.FileName); } try { XElement xmlObject = XElement.Load(this.FileName); string xmlString = xmlObject.ToString(); this.ProcessorConfigs = XMLHelper.ConvertXmlStringtoObject <ProcessorConfigs>(xmlString); this.ProcessorConfigs.ListProcessorConfig = this.ProcessorConfigs.ListProcessorConfig.OrderBy(x => x.Code).ToList(); } catch (Exception) { } }