/// <summary> /// Updates the form settings. /// </summary> private void UpdateFormSettings() { this.formSettings = new SettingsFormLand { ScaleDrawing = Convert.ToDouble( this.comboBoxScaleDrawing.SelectedItem.ToString().Replace("1 : ", "") ) / 1000, IndexTabControl = this.tabControl.SelectedIndex, DisplayPointNumbers = this.checkBoxPointsDisplay.Checked, AutomaticDisplayPointNumbers = this.radioButtonPointsAutomatic.Checked, DisplayLengthLine = this.checkBoxDistDisplay.Checked, AutomaticDisplayLengthLine = this.radioButtonDistAutomatic.Checked, DisplayFillParcel = this.checkBoxFillParcel.Checked, DisplayFillLand = this.checkBoxFillLands.Checked, DisplayFillLimiting = this.checkBoxFillLimiting.Checked, DisplayFillNeighbors = this.checkBoxFillNeighbors.Checked, DisplayFillNeighborsStateAct = this.radioButtonNeighborsStateAct.Checked, DisplayArea = this.checkBoxArea.Checked, UnitArea = this.radioButtonUnitAreaSquareMeter.Checked, DisplayPerimeter = this.checkBoxPerimeter.Checked }; }
private void LoadAllSettings() { this.drawingSettings = LoadSettings <SettingsDrawing>(localPath.FindFullPathFromXml("PathDrawing")); if (this.drawingSettings == null) { this.drawingSettings = SettingsDrawing.Default; } this.userSettings = LoadSettings <SettingsLand>(localPath.FindFullPathFromXml("PathUsers")); if (this.userSettings == null) { this.userSettings = SettingsLand.Default; } this.formSettings = LoadSettings <SettingsFormLand>(localPath.FindFullPathFromXml("PathFormLand")); if (this.formSettings == null) { this.formSettings = new SettingsFormLand(); } this.tableSettings = LoadSettings <SettingsTable>(localPath.FindFullPathFromXml("PathTables")); if (this.formSettings == null) { this.tableSettings = SettingsTable.Default; } this.frameDrawingSettings = LoadSettings <SettingsLand>(localPath.FindFullPathFromXml("PathFrameDrawing")); if (this.formSettings == null) { this.frameDrawingSettings = SettingsLand.Default; } }
//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; }