ningshuxia
2025-03-28 b6a00e2fddcf2343b981c30be670aa00b87699dc
WinFrmUI/PBS.WinFrmUI.Hydro/99-map-view/DMap.cs
@@ -1,11 +1,11 @@

namespace HydroUI
{
    public partial class DMap : XtraPanel
    public partial class DMap : XtraUserControl
    {
        public TContainer TC = new TContainer();
        /// <summary>
        /// 地图选项
        /// </summary>
@@ -32,7 +32,7 @@
        {
            get { return TC.template; }
        }
        private bool _needPaintAll;
        private Bitmap buffer;
@@ -60,7 +60,7 @@
            DoubleBuffered = true;
        }
         //补充参数
        //补充参数
        public void Init(TContainer TC, DrawDelegate[] Draws, MouseDelegate[] MouseEvents)
        {
            this.TC = TC;
@@ -73,7 +73,7 @@
            this.onMouseUp = MouseEvents[2];
            this.onMouseWheel = MouseEvents[3];
            this.Inited = true;
            this.Status=DrawingStatus.Ready;
            this.Status = DrawingStatus.Ready;
        }
        protected override void OnPaint(PaintEventArgs e)
@@ -134,9 +134,14 @@
            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);
        }