| | |
| | | |
| | | namespace Hydro |
| | | namespace HydroUI |
| | | { |
| | | public partial class DMap : XtraPanel |
| | | public partial class DMap : XtraUserControl |
| | | { |
| | | |
| | | public TContainer TC = new TContainer(); |
| | | |
| | | /// <summary> |
| | | /// 地图选项 |
| | | /// </summary> |
| | | public MapDimensions mapOption |
| | | { |
| | | get { return TC.mapOption; } |
| | | set { TC.mapOption = value; } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 临时管网层 |
| | | /// </summary> |
| | | [Browsable(false)] |
| | | public Template _newTemplate |
| | | { |
| | | get { return TC.newTemplate; } |
| | | set { TC.newTemplate = value; } |
| | | } |
| | | |
| | | |
| | | [Browsable(false)] |
| | | public Template _Template |
| | | { |
| | | get { return TC.template; } |
| | | } |
| | | |
| | | |
| | | private bool _needPaintAll; |
| | | private Bitmap buffer; |
| | | |
| | |
| | | InitializeComponent(); |
| | | DoubleBuffered = true; |
| | | } |
| | | |
| | | //补充参数 |
| | | public void Init(TContainer TC, DrawDelegate[] Draws, MouseDelegate[] MouseEvents) |
| | | { |
| | |
| | | if (Inited) onMouseUp(e); |
| | | } |
| | | |
| | | protected override void OnMouseWheelCore(MouseEventArgs ev) |
| | | private void InitializeComponent() |
| | | { |
| | | base.OnMouseWheelCore(ev); |
| | | |
| | | } |
| | | |
| | | protected override void OnMouseWheel(MouseEventArgs ev) |
| | | { |
| | | base.OnMouseWheel(ev); |
| | | if (Inited) onMouseWheel(ev); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |