void labelX1_MouseClick(object sender, MouseEventArgs e)
        {
            switch (Singleton.Instance.EditDeviceMode)
            {
            case DataMonitor.DQ.Infrastructure.EditDeviceMode.Update:

                var editDeviceForm = new EditDeviceForm(_deviceitem.Device);
                editDeviceForm.EditComplete += editDeviceForm_EditComplete;
                editDeviceForm.ShowDialog();

                break;

            case DataMonitor.DQ.Infrastructure.EditDeviceMode.Delete:
                if (MessageBox.Show("确定要删除删除当前监测点吗?", "删除确认", MessageBoxButtons.OKCancel) == DialogResult.OK)
                {
                    DeviceService.DeleteDevice(this._deviceitem.Device.Id);
                    if (RemodeComplete != null)
                    {
                        RemodeComplete(this);
                    }
                }
                break;

            default:
                break;
            }
        }
        private void panel1_MouseClick(object sender, MouseEventArgs e)
        {
            switch (Singleton.Instance.EditDeviceMode)
            {
            case DataMonitor.DQ.Infrastructure.EditDeviceMode.Add:
                var addDeviceForm = new EditDeviceForm(e.X, e.Y);
                addDeviceForm.EditComplete += addDeviceForm_EditComplete;
                addDeviceForm.ShowDialog();
                break;

            default:
                break;
            }
        }