private void ATAP(string name, PartsPage part, XElement paramNode, Dictionary<PartsPage, IEnumerable<string>> dict) { string value = null; var node = dict[part]; if (node != null && node.Count<string>() > 0) { value = node.First<string>(); } if (value == null) value = "Не указан"; paramNode.Value += this.separate + name + " = " + value; separate = ";"; }
private void ATXImg(string name, PartsPage part, XElement el, Dictionary<PartsPage, IEnumerable<string>> dict) { var sb = new StringBuilder(); var node = dict[part]; if (node != null) { var separate = string.Empty; foreach (var item in node) { sb.Append(separate); var nameFile = Path.GetFileName(item); sb.Append(nameFile); if (separate.Equals(string.Empty)) separate = ";"; } } el.Add(new XElement(name, sb.ToString())); }
private string GetSingleDateByKey(PartsPage part, Dictionary<PartsPage, IEnumerable<string>> dict) { string value = string.Empty; var node = dict[part]; if (node != null && node.Count<string>() > 0) value = node.First<string>(); return value; }
private void ATAPMileage(string name, PartsPage part, XElement paramNode, Dictionary<PartsPage, IEnumerable<string>> dict) { string value = null; var node = dict[part]; if (node != null && node.Count<string>() > 0) value = node.First<string>(); if (value != null) { value = value.Replace(" ", ""); value = InfoPage.GetDatafromText(value, "\\d+"); } else value = "Не указан"; paramNode.Value += this.separate + name + " = " + value; separate = ";"; }