| | |
| | | |
| | | _propertyForm = new PropertyForm(); |
| | | _propertyForm.Dock = DockStyle.Fill; |
| | | this.dockPanelProperty.Controls.Add(_propertyForm); |
| | | this.dockPanelModelProperty.Controls.Add(_propertyForm); |
| | | |
| | | GlobalObject.PropertyForm = _propertyForm; |
| | | GlobalObject.map = _mapView; |
| | |
| | | template.network = new MapViewNetWork(); |
| | | template.network.BuildFromInp(Path.Combine(Directory.GetCurrentDirectory(), _template.filePath)); |
| | | _mapView.SetData(template); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | temp.BackGroundPoint1 = new PointF(0, 0); |
| | | _mapView._Template = temp; |
| | | _mapView.SetMapInvalidate(); |
| | | |
| | | } |
| | | |
| | | #region Event |
| | |
| | | _template.view.zoom = _mapView.zoom; |
| | | _template.view.rotation = _mapView.Rotation; |
| | | _template.view.rotationF = _mapView.RotationF; |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | if (_template == null) |
| | | { |
| | | return; |
| | | //if (_template == null) |
| | | //{ |
| | | // _template = new Template() |
| | | // { |
| | | // ID = _modelTemplate.ID.ToString(), |
| | | // Name = _modelTemplate.Name, |
| | | // Type = _modelTemplate.TemplateType, |
| | | // filePath = _modelTemplate.ModelPath, |
| | | // }; |
| | | // _template.network = new MapViewNetWork(); |
| | | //} |
| | | } |
| | | var openFileDlg = new OpenFileDialog(); |
| | | openFileDlg.Filter = "INP文件|*.inp"; |
| | |
| | | _template.network.BuildFromInp(templateFilePath); |
| | | |
| | | _mapView.SetData(_template); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | _mapView.SetMapInvalidate(); |
| | | } |
| | | |
| | | private void barBtnFrontView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) |
| | | { |
| | | SetFrontView(); |
| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |