Exemple #1
0
 public SettingHatch(HatchPolygon key,
                     int colorIndex,
                     PatternHatch pattern)
 {
     this.Key        = key;
     this.ColorIndex = colorIndex;
     this.Pattern    = pattern;
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }