Esempio n. 1
0
 protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (PopupClosing != null)
     {
         PopupClosing(this, e);
     }
 }
 private void RadDateTimePickerDropDown_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     if (this.Closing != null)
     {
         this.Closing(sender, args);
     }
 }
        private void ChooseColumnsMenuItem_DropDownClosing(object sender, RadPopupClosingEventArgs args)
        {
            RadMenuItem radMenuItem = sender as RadMenuItem;

            if (radMenuItem == null)
            {
                return;
            }
            Point client = radMenuItem.DropDown.PointToClient(Control.MousePosition);
            bool  flag   = false;

            foreach (RadMenuItemBase radMenuItemBase in (RadItemCollection)radMenuItem.Items)
            {
                if (radMenuItemBase is RadMenuItem && radMenuItemBase.BoundingRectangle.Contains(client.X, client.Y))
                {
                    flag = true;
                    break;
                }
            }
            if (!flag)
            {
                return;
            }
            args.Cancel = true;
        }
Esempio n. 4
0
 /// <summary>
 /// Raises the <see cref="DropDownClosing"/> event.
 /// </summary>
 /// <param name="args">An instance of the <see cref="RadPopupClosingEventArgs"/> class
 /// that contains information about the event.</param>
 protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
 {
     if (this.DropDownClosing != null)
     {
         this.DropDownClosing(this, args);
     }
 }
 protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (this.PopupClosing == null)
     {
         return;
     }
     this.PopupClosing((object)this, e);
 }
Esempio n. 6
0
 private void Popup_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     if (this.programmaticallyClosingPopup || args.Cancel)
     {
         return;
     }
     this.Collapse();
 }
Esempio n. 7
0
 protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
 {
     if (this.DropDownClosing == null)
     {
         return;
     }
     this.DropDownClosing((object)this, args);
 }
Esempio n. 8
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
        {
            RadPopupClosingEventHandler handler1 = (RadPopupClosingEventHandler)this.Events[RadGalleryElement.DropDownClosingEventKey];

            if (handler1 != null)
            {
                handler1(this, e);
            }
        }
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
        {
            RadPopupClosingEventHandler handler1 = (RadPopupClosingEventHandler)this.Events[RadDropDownButtonElement.DropDownClosingEventKey];

            if (handler1 != null)
            {
                handler1(this, args);
            }
        }
Esempio n. 10
0
        protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
        {
            RadPopupClosingEventHandler handler = this.Events[ClosingEventKey] as RadPopupClosingEventHandler;

            if (handler != null)
            {
                handler(this, args);
            }
        }
        private void controlPanel_Closing(object sender, RadPopupClosingEventArgs args)
        {
            this.cachedSize = this.popupControl.Size;
            Form frm = this.dateTimePickerElement.ElementTree.Control.FindForm();

            if (frm != null)
            {
                frm.FormClosed -= new FormClosedEventHandler(frm_FormClosed);
            }
        }
Esempio n. 12
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
        {
            RadPopupClosingEventHandler closingEventHandler = (RadPopupClosingEventHandler)this.Events[RadGalleryElement.DropDownClosingEventKey];

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, e);
        }
Esempio n. 13
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
        {
            RadPopupClosingEventHandler closingEventHandler = (RadPopupClosingEventHandler)this.Events[RadMultiColumnComboBox.DropDownClosingEventKey];

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, e);
        }
Esempio n. 14
0
        protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
        {
            RadPopupClosingEventHandler closingEventHandler = this.Events[RadDesktopAlert.ClosingEventKey] as RadPopupClosingEventHandler;

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, args);
        }
Esempio n. 15
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
        {
            RadPopupClosingEventHandler closingEventHandler = (RadPopupClosingEventHandler)this.Events[RadDropDownButtonElement.DropDownClosingEventKey];

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, args);
        }
Esempio n. 16
0
        protected virtual void OnOverflowMenuClosing(object sender, RadPopupClosingEventArgs args)
        {
            if (args.Cancel || this.OverflowMenuClosing == null)
            {
                return;
            }
            CancelEventArgs e = new CancelEventArgs();

            this.OverflowMenuClosing((object)this, e);
            args.Cancel = e.Cancel;
        }
Esempio n. 17
0
 protected override void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (e.CloseReason == RadPopupCloseReason.Mouse && this.arrowButton.ContainsMouse)
     {
         e.Cancel = true;
     }
     else
     {
         base.OnPopupClosing(e);
     }
 }
Esempio n. 18
0
        void dropDownMenuElement_DropDownClosing(object sender, RadPopupClosingEventArgs args)
        {
            RadItemCollection items = ((RadMenuItem)this.dropDownMenuElement.Items.Last).Items;

            for (int i = 0; i < items.Count; ++i)
            {
                if (items[i].ContainsMouse)
                {
                    args.Cancel = true;
                }
            }
        }
Esempio n. 19
0
        private void dropDownMenuElement_DropDownClosing(object sender, RadPopupClosingEventArgs args)
        {
            RadItemCollection items = (RadItemCollection)this.addRemoveButtonsMenuItem.Items;

            for (int index = 0; index < items.Count; ++index)
            {
                if (items[index].ContainsMouse)
                {
                    args.Cancel = true;
                }
            }
        }
 private void popup_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     if (args.CloseReason == RadPopupCloseReason.Mouse && this.ArrowButton.ControlBoundingRectangle.Contains(this.ElementTree.Control.PointToClient(Control.MousePosition)))
     {
         args.Cancel = true;
     }
     if (args.Cancel)
     {
         return;
     }
     this.calculatorContentElement.ProcessOperation(true);
     this.editorContentElement.Focus();
     this.popupSize = this.popup.Size;
 }
Esempio n. 21
0
		private void HideControl(RadPopupCloseReason reason)
		{
            if (this.Visible)
			{
				if (Closing != null)
				{
					RadPopupClosingEventArgs args = new RadPopupClosingEventArgs(reason);
					Closing(this, args);
					if (args.Cancel == true)
						return;
				}
				this.closeReason = reason;
				this.Hide();
			}
		}
Esempio n. 22
0
 protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     args.Cancel = args.CloseReason == RadPopupCloseReason.Mouse && this.dropDownButton.IsMouseOver;
 }
Esempio n. 23
0
 void dropDown_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Esempio n. 24
0
 private void RadItemsPopupControl_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Esempio n. 25
0
 private void menu_DropDownClosing(object sender, RadPopupClosingEventArgs e)
 {
     this.OnDropDownClosing(e);
 }
Esempio n. 26
0
 private void comboBoxElement_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Esempio n. 27
0
 private void dateTimePickerElement_Closing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnClosing(args);
 }
Esempio n. 28
0
 private void OnPopupForm_Closing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnPopupClosing(args);
 }