public SettingHatch(HatchPolygon key, int colorIndex, PatternHatch pattern) { this.Key = key; this.ColorIndex = colorIndex; this.Pattern = pattern; }
internal static HatchPolygon GetHatchParcel() { List <HatchPolygon> list = ServiceXml.ReadXml <List <HatchPolygon> >(new LocalPath("LoSa_Land").FindFullPathFromXml("PathHatchPolygon")); HatchPolygon hatchPolygon = list.Find ( delegate(HatchPolygon hatchParcel) { return(hatchParcel.Type == "Parcel"); } ); return(hatchPolygon); }
internal static HatchPolygon GetHatchLimiting(LandPolygon poligon) { List <HatchPolygon> list = ServiceXml.ReadXml <List <HatchPolygon> >(new LocalPath("LoSa_Land").FindFullPathFromXml("PathHatchPolygon")); string type = poligon.FindInfo("OK").Value; string name = poligon.FindInfo("OX").Value; HatchPolygon hatchPolygon = list.Find ( delegate(HatchPolygon hatchLimiting) { return(hatchLimiting.Type == type && hatchLimiting.Name == name); } ); return(hatchPolygon); }
internal static HatchPolygon GetHatchLand(LandPolygon poligon) { List <HatchPolygon> list = ServiceXml.ReadXml <List <HatchPolygon> >(new LocalPath("LoSa_Land").FindFullPathFromXml("PathHatchPolygon")); HatchPolygon hatchPolygon = null; LandInfo infoCC = poligon.FindInfo("CC"); if (infoCC != null) { string type = infoCC.Value; hatchPolygon = list.Find ( delegate(HatchPolygon hatchLand) { return(hatchLand.Type == type); } ); } return(hatchPolygon); }