private static int WellIndex(Well w) { if (w.Properties.ContainsKey("Index")) { return(Convert.ToInt32(w.GetProperty("Index"))); } else { return(0); } }