コード例 #1
0
        public void Dispose()
        {
            DisposeToolstripControlHost();
            if (_PopupControlHost != null)
            {
                _PopupControlHost.Closed -= new ToolStripDropDownClosedEventHandler(DropDownClosed);
                _PopupControlHost.Closing -= new ToolStripDropDownClosingEventHandler(DropDownClosing);
                _PopupControlHost.Dispose();
                _PopupControlHost = null;
            }

        }
コード例 #2
0
 private void InitializePopupControlHost()
 {
     if (_PopupControlHost == null)
     {
         _PopupControlHost = new PopupControlHost();
         _PopupControlHost.Closed += new ToolStripDropDownClosedEventHandler(DropDownClosed);
         _PopupControlHost.Closing += new ToolStripDropDownClosingEventHandler(DropDownClosing);
     }
 }