//private int versionCAD; public ServiceParcel(LandParcel parcel, SettingsFormLand formSettings) { settingsDrawing = ServiceXml.ReadXml <SettingsDrawing>(localPath.FindFullPathFromXml("PathDrawing")); if (settingsDrawing == null) { settingsDrawing = SettingsDrawing.Default; } this.Parcel = parcel; this.SettingsForm = formSettings; }
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); }
public Setting FindLocalPathFromXml(string key) { LocalPath localPath = ServiceXml.ReadXml <LocalPath>(this.RootDirectory + "\\settings\\LocalPaths.xml"); if (localPath == null) { return(null); } return(localPath.Paths.Find ( delegate(Setting setLand) { return setLand.Key == key; } )); }
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); }
/// <summary> /// Gets the limiting on use land from XML. /// </summary> /// <returns> /// List LimitingOnUseLand /// </returns> public static List <LimitingOnUseLand> GetLimitingOnUseLandFromXml() { return(ServiceXml.ReadXml <List <LimitingOnUseLand> > (new LocalPath("LoSa_Land").FindLocalPathFromXml("PathLimitingOnUseLand").Name)); }
/* * private void _AddBoxDriwingSettings(SettingLand setting) * { * this.frameDrawingSettings.Setting.Add(setting); * LoadFrameDrawingSettings(); * } */ #endregion TableSettings // for Settings #region Settings private static T LoadSettings <T>(string pathSettings) { return(ServiceXml.ReadXml <T>(pathSettings)); }
public FormEditTables() { tableSettings = ServiceXml.ReadXml <SettingsTable>(localPath.FindLocalPathFromXml("PathTables").Name); InitializeComponent(); }