示例#1
0
 private void UC_Closing()
 {
     if (_customToolTip != null)
     {
         _customToolTip.Close();
         _customToolTip.Dispose();
     }
 }
        /// <summary>
        /// 释放资源
        /// </summary>
        public void DisposeAllInfo()
        {
            if (_customToolTip != null)
            {
                _customToolTip.Close();
                _customToolTip.Dispose();
                _customToolTip = null;
            }

            if (_tempRedundancyDict != null)
            {
                _tempRedundancyDict.Clear();
                _tempRedundancyDict = null;
            }

            _senderStatusUC.MouseMoveInGridEvent -= new MouseOperateInGridEventHandler(SenderStatusUC_MouseMoveInGridEvent);
        }
        private void UC_OneScreenLayout_Disposed(object sender, EventArgs e)
        {
            this.Disposed -= new EventHandler(UC_OneScreenLayout_Disposed);

            if (_customToolTip != null)
            {
                _customToolTip.Close();
                _customToolTip.Dispose();
                _customToolTip = null;
            }

            if (_standarAndSimpleLayout != null)
            {
                _standarAndSimpleLayout.GridMouseMove        -= new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseMove);
                _standarAndSimpleLayout.GridMouseDoubleClick -= new RectangularGridMouseEventHandler(StandarAndSimpleLayout_GridMouseDoubleClick);
            }
            if (_complexLayout != null)
            {
                _complexLayout.SetComplexScreenInfEvent -= new SettingMonitorCntEventHandler(ComplexScreenSetInfo);
            }
        }