using SlMesDbIterface;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using System.ComponentModel;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;

namespace MesWork
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Temp { }
    /// <summary>
    /// 注册事件
    /// </summary>
    public partial class MesWorkForm
    {
        /// <summary>
        /// 注册事件
        /// </summary>
        /// <param name="panel"></param>
        private Control Release(Panel panel)
        {
            panel.MouseDown -= C_MouseDown;
            panel.MouseDown += C_MouseDown;
            panel.MouseMove -= C_MouseMove;
            panel.MouseMove += C_MouseMove;
            panel.MouseUp -= C_MouseUp;
            panel.MouseUp += C_MouseUp;
            panel.MouseHover -= Panel_MouseHover;
            panel.MouseHover += Panel_MouseHover;
            panel.Click -= Panel_Click;
            panel.Click += Panel_Click;
            return panel;
        }
        /// <summary>
        /// 注册事件
        /// </summary>
        /// <param name="label"></param>
        private Control Release(Label label)
        {
            label.MouseDown -= C_MouseDown;
            label.MouseDown += C_MouseDown;
            label.MouseMove -= C_MouseMove;
            label.MouseMove += C_MouseMove;
            label.MouseUp -= C_MouseUp;
            label.MouseUp += C_MouseUp;
            return label;
        }

      


    }
}
