Ejemplo n.º 1
0
 protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (PopupClosing != null)
     {
         PopupClosing(this, e);
     }
 }
Ejemplo n.º 2
0
 private void RadDateTimePickerDropDown_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     if (this.Closing != null)
     {
         this.Closing(sender, args);
     }
 }
Ejemplo n.º 3
0
        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;
        }
Ejemplo 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);
     }
 }
Ejemplo n.º 5
0
 protected virtual void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (this.PopupClosing == null)
     {
         return;
     }
     this.PopupClosing((object)this, e);
 }
Ejemplo n.º 6
0
 private void Popup_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     if (this.programmaticallyClosingPopup || args.Cancel)
     {
         return;
     }
     this.Collapse();
 }
Ejemplo n.º 7
0
 protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
 {
     if (this.DropDownClosing == null)
     {
         return;
     }
     this.DropDownClosing((object)this, args);
 }
Ejemplo n.º 8
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
        {
            RadPopupClosingEventHandler handler1 = (RadPopupClosingEventHandler)this.Events[RadGalleryElement.DropDownClosingEventKey];

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

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

            if (handler != null)
            {
                handler(this, args);
            }
        }
Ejemplo n.º 11
0
        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);
            }
        }
Ejemplo n.º 12
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)
        {
            RadPopupClosingEventHandler closingEventHandler = (RadPopupClosingEventHandler)this.Events[RadGalleryElement.DropDownClosingEventKey];

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

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, e);
        }
Ejemplo 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);
        }
Ejemplo n.º 15
0
        protected virtual void OnDropDownClosing(RadPopupClosingEventArgs args)
        {
            RadPopupClosingEventHandler closingEventHandler = (RadPopupClosingEventHandler)this.Events[RadDropDownButtonElement.DropDownClosingEventKey];

            if (closingEventHandler == null)
            {
                return;
            }
            closingEventHandler((object)this, args);
        }
Ejemplo 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;
        }
Ejemplo n.º 17
0
 protected override void OnPopupClosing(RadPopupClosingEventArgs e)
 {
     if (e.CloseReason == RadPopupCloseReason.Mouse && this.arrowButton.ContainsMouse)
     {
         e.Cancel = true;
     }
     else
     {
         base.OnPopupClosing(e);
     }
 }
Ejemplo 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;
                }
            }
        }
Ejemplo 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;
 }
Ejemplo 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();
			}
		}
Ejemplo n.º 22
0
 protected virtual void OnPopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     args.Cancel = args.CloseReason == RadPopupCloseReason.Mouse && this.dropDownButton.IsMouseOver;
 }
Ejemplo n.º 23
0
 void dropDown_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Ejemplo n.º 24
0
 private void RadItemsPopupControl_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Ejemplo n.º 25
0
 private void menu_DropDownClosing(object sender, RadPopupClosingEventArgs e)
 {
     this.OnDropDownClosing(e);
 }
Ejemplo n.º 26
0
 private void comboBoxElement_PopupClosing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnDropDownClosing(args);
 }
Ejemplo n.º 27
0
 private void dateTimePickerElement_Closing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnClosing(args);
 }
Ejemplo n.º 28
0
 private void OnPopupForm_Closing(object sender, RadPopupClosingEventArgs args)
 {
     this.OnPopupClosing(args);
 }