示例#1
0
 private void ToolStripDropDown1_Closed(Object sender, Forms.ToolStripDropDownClosedEventArgs e)
 {
     System.Text.StringBuilder messageBoxCS = new System.Text.StringBuilder();
     messageBoxCS.AppendFormat("{0} = {1}", "CloseReason", e.CloseReason);
     messageBoxCS.AppendLine();
     MessageBox.Show(messageBoxCS.ToString(), "Closed Event");
 }
示例#2
0
 private void menu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (this.WindowState != FormWindowState.Minimized)
     {
         topmost.Enabled = true;
     }
 }
示例#3
0
 private void popup_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (!textBox.Visible)
     {
         borderLabel.Image = searchProviders.ProviderImage;
     }
     borderLabel.Text = searchProviders.ProviderName;
 }
 private void mnuContext_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     mnuContext.Items.ClearAndDispose(
         mnuContext.Items.IndexOf(mnuContextCallees) + 1,
         mnuContext.Items.IndexOf(mnuContextCallers) - 1);
     mnuContext.Items.ClearAndDispose(
         mnuContext.Items.IndexOf(mnuContextCallers) + 1,
         mnuContext.Items.Count);
 }
示例#5
0
        /// <summary>
        /// Context menu has just closed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void contextMenuMain_Closed(object sender, ToolStripDropDownClosedEventArgs e)
        {
            // Get the various modes we are in, and change them as necessary for the length of
            // time the menu is opened.

            if (fWasInSlideshowModeWhenMenuOpened)
            {
                fWasInSlideshowModeWhenMenuOpened = false;
                ourSlideshow.Start();
            }
        }
示例#6
0
 private void mnuApplication_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     ApplicationMenuHover = false;
     ApplicationMenuActive = false;
     lblApplicationMenu.ForeColor = Color.White;
     lblApplicationMenu.Invalidate();
 }
示例#7
0
 private void dropDownButtons_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) {
     DropDownMenuBase.ExitMenuMode();
 }
示例#8
0
 private void unavailableMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     timetableControl1.ClearActive();
 }
示例#9
0
 private void _trayIconContextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     // Restore the items back to the main menu when closing
     ToolStripItem[] items = new ToolStripItem[_trayIconContextMenuStrip.Items.Count];
     _trayIconContextMenuStrip.Items.CopyTo(items, 0);
     fileToolStripMenuItem.DropDownItems.AddRange(items);
     _trayIconContextMenuStrip.Items.Clear();
     _trayIconContextMenuStrip.Items.Add(new ToolStripSeparator());  // Dummy item so menu is shown the next time
     minimizeToTrayToolStripMenuItem.Checked = false;
     minimizeToTrayToolStripMenuItem.Font = new Font(minimizeToTrayToolStripMenuItem.Font, FontStyle.Regular);
 }
示例#10
0
 private void DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e) {
     OnDropDownClosed(EventArgs.Empty);
 }
示例#11
0
 void DiMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     EnableDPadMenu(false);
 }
示例#12
0
 private void u_toggleInputMethodDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     this.u_toggleInputMethod.ForeColor = Color.White;
     this.m_isInputMethodDropDownOpened = false;
 }
示例#13
0
 private void ctContextMenu_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     bShouldRemainVisible = false;
     bMouseIsOn           = false;
     tmAnimation.Start();
 }
示例#14
0
 private void ToolStripDropDown_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
     _opened = false;
 }
 private void quickTextClosed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     textbox.ImeMode = ImeMode.NoControl;
 }
示例#16
0
 void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     if (selectedToolStripMenuItem.Tag == null)
         gridContainer.ClearSelected();
 }
		private void contextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			this.ParentGrid.Focus();
		}
示例#18
0
        private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e)
        {
            //contextMenuShowing = false;
            //if (hasChanged)
            //{
            //    hasChanged = false;

            //    lvLastestUpdates.SetObjects(DataSource);
            //}
        }
示例#19
0
 protected override void OnClosed(ToolStripDropDownClosedEventArgs e)
 {
     fOnceKeyDown = false;
     ResetImageKeys();
     base.OnClosed(e);
 }
示例#20
0
 void contextMenuStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     this._isFocus = false;
     base.Invalidate(this._btnArrowRect);
 }
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handles the Closed event of the m_commentToolTip control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/>
		/// instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		private void m_commentToolTip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			m_toolTipCell = null;
		}
 void m_DropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     //Set the focus back to us
     this.Focus();
     Invalidate();
 }
示例#23
0
 private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     dropDownHideTime = DateTime.Now;
 }
示例#24
0
    private void conStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
    {
      try
      {
        var items = gridSelected.SelectedRows.OfType<DataGridViewRow>().Select(r => (ItemReference)r.DataBoundItem).ToList();

        if (items.Any())
        {
          var selectedLevelItem = mniLevels.DropDownItems.OfType<ToolStripMenuItem>().Where(m => m.Checked).FirstOrDefault();
          if (selectedLevelItem != null)
          {
            var level = mniLevels.DropDownItems.IndexOf(selectedLevelItem);
            foreach (var item in items) item.Levels = level;
          }

          var sysProps = (mniHistory.Checked ? SystemPropertyGroup.History : 0)
            | (mniPermissions.Checked ? SystemPropertyGroup.Permission : 0)
            | (mniState.Checked ? SystemPropertyGroup.State : 0)
            | (mniVersion.Checked ? SystemPropertyGroup.Versioning : 0);

          foreach (var item in items) item.SystemProps = sysProps;
        }
      }
      catch (Exception ex)
      {
        Utils.HandleError(ex);
      }
    }
示例#25
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Handles the Closed event of the m_dropDown control.
		/// </summary>
		/// <param name="sender">The source of the event.</param>
		/// <param name="e">The <see cref="T:System.Windows.Forms.ToolStripDropDownClosedEventArgs"/>
		/// instance containing the event data.</param>
		/// ------------------------------------------------------------------------------------
		private void dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			// we have to set a variable so that we know that user clicked on drop down button
			// or in text box to close the drop down.
			m_fDropDownClickedClose = ClientRectangle.Contains(PointToClient(MousePosition));
			m_dropDown = null;
		}
示例#26
0
 private void anyStrip_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     ((ContextMenuStrip)sender).Text = "Hidden";
     //Debug.Write(((ContextMenuStrip)sender).Name);
 }
示例#27
0
文件: DataViewer.cs 项目: egacheru/G2
 private void ux_contextmenustripDGVCell_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     RefreshMainDGVFormatting();
 }
            private void m_dropDown_Closed(object sender, ToolStripDropDownClosedEventArgs e)
            {
                if (AutoResetWhenClosed)
                    DisposeHost();

                // Hide drop down within popup control.
                if (PopupControlHost != null)
                    PopupControlHost.HideDropDown();
            }
示例#29
0
		void m_taggingContextMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			m_ticksWhenContextMenuClosed = DateTime.Now.Ticks;
		}
示例#30
0
 private void mnuDebug_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     DebugMenuHover = false;
     DebugMenuActive = false;
     lblDebugMenu.ForeColor = Color.White;
     lblDebugMenu.Invalidate();
 }
 void ContextMenuForDir_Closed(object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e)
 {
 }
示例#32
0
        private void ListSelect_Close(object sender, ToolStripDropDownClosedEventArgs e)
        {
            int A = 0;

            for ( A = 0; A <= ListSelectItems.GetUpperBound(0); A++ )
            {
                ListSelectItems[A].Tag = null;
                ListSelectItems[A].Dispose();
            }
            ListSelect.Items.Clear();
            ListSelectItems = new ToolStripItem[0];

            App.ViewKeyDown_Clear();
        }
示例#33
0
 private void ctx_gesturesMenu_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     pic_menuBtn.Image = Properties.Resources.menuBtn;
 }
示例#34
0
		//-------------------------------------------------------------------------------------
		private void contextMenuStripFind_Closed(object sender, ToolStripDropDownClosedEventArgs e)
		{
			if(e.CloseReason == ToolStripDropDownCloseReason.ItemClicked)
				BeginFind();
		}
示例#35
0
 private void contextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e)
 {
     removeToolStripMenuItem.DropDownItems.Clear();
 }