public void setStatusLogic(GA_Data ga, string drawingType) { if (drawingType.Contains("PDF")) { for (int i = _pdf.Count - 1; i >= 0; i--) { if (ga.fullName == Path.GetFileNameWithoutExtension(_pdf[i])) { ga.setPDF(_pdf[i]); _pdf.RemoveAt(i); } } } if (drawingType.Contains("DWG")) { for (int i = _dwg.Count - 1; i >= 0; i--) { if (ga.fullName == Path.GetFileNameWithoutExtension(_dwg[i])) { ga.setDWG(_dwg[i]); _dwg.RemoveAt(i); } } } }
public void buildData(string revFormat) { foreach (ArrayList element in _raw) { GA_Data ga = new GA_Data((string)element[0], revFormat, (string)element[1]); this._allDrawings.Add(ga); } }
public static Color colorOfField(GA_Data ga) { if (ga.status == 1) { return(Color.LimeGreen); } else if (ga.status == 2) { return(Color.Red); } else { return(Color.Cyan); } }
private void addPartToList(GA_Data ga) { if (ga.status == 1) { string pathShort = ga.pdfPath + " " + ga.dwgPath; pathShort = pathShort.Replace(_folder, ""); lv_csv_results.Items.Add(ga.ToString()).SubItems.Add(pathShort); lv_csv_results.Items[lv_csv_results.Items.Count - 1].BackColor = ABI.colorOfField(ga); } else { lv_csv_results.Items.Add(ga.ToString()).SubItems.Add(ga.statusMessage); lv_csv_results.Items[lv_csv_results.Items.Count - 1].BackColor = ABI.colorOfField(ga); } }