| | |
| | | using Hydro; |
| | | using DevExpress.Drawing.Internal.Fonts.Interop; |
| | | using DevExpress.XtraPrinting.Native; |
| | | using Hydro; |
| | | |
| | | namespace PBS.WinFrmUI.Hydro |
| | | { |
| | |
| | | this.modelTemplateTreeListCtrl1.SaveModelTemplate(_modelTemplate); |
| | | } |
| | | |
| | | private void SetZoom() |
| | | { |
| | | if (_template != null) |
| | | { |
| | | if (_template.view == null) _template.view = new MapDimensions(); |
| | | _template.view.Center = _mapView.MapCenter; |
| | | _template.view.zoom = _mapView.zoom; |
| | | _template.view.rotation = _mapView.Rotation; |
| | | _template.view.rotationF = _mapView.RotationF; |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | private void barBtnSaveModelTemplate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | |
| | | _mapView.重置视角ToolStripMenuItem_Click(1, new EventArgs()); |
| | | } |
| | | |
| | | private void SetZoom() |
| | | { |
| | | if (_template == null) return; |
| | | _template.view ??= new MapDimensions(); |
| | | _template.view.Center = _mapView.MapCenter; |
| | | _template.view.zoom = _mapView.zoom; |
| | | _template.view.rotation = _mapView.Rotation; |
| | | _template.view.rotationF = _mapView.RotationF; |
| | | } |
| | | |
| | | |
| | | private void SaveView() |
| | | { |
| | | //if (_mapDimensions == null) |
| | | // _mapDimensions = new MapDimensions(); |
| | | //_mapDimensions.Center = map.MapCenter; |
| | | //_mapDimensions.zoom = map.zoom; |
| | | //_mapDimensions.rotation = map.Rotation; |
| | | //_mapDimensions.rotationF = map.RotationF; |
| | | |
| | | if (_template == null) return; |
| | | if (_template.view == null) _template.view = new MapDimensions(); |
| | | _template.view ??= new MapDimensions(); |
| | | _template.view.Center = _mapView.MapCenter; |
| | | _template.view.zoom = _mapView.zoom; |
| | | _template.view.rotation = _mapView.Rotation; |