Esempio n. 1
0
        protected virtual void OnCreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)
        {
            CreatingVisualListItemEventHandler handler = (CreatingVisualListItemEventHandler)this.Events[CreatingVisualListItemEventKey];

            if (handler != null)
            {
                handler(this, args);
            }
        }
Esempio n. 2
0
        protected virtual void OnCreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)
        {
            CreatingVisualListItemEventHandler itemEventHandler = (CreatingVisualListItemEventHandler)this.Events[RadListControl.CreatingVisualListItemEventKey];

            if (itemEventHandler == null)
            {
                return;
            }
            itemEventHandler((object)this, args);
        }
 public PopupEditorNotificationData()
 {
     this.notificationContext             = PopupEditorNotificationData.Context.None;
     this.valueChangedEventArgs           = (Telerik.WinControls.UI.Data.ValueChangedEventArgs)null;
     this.positionChangingCancelEventArgs = (PositionChangingCancelEventArgs)null;
     this.positionChangedEventArgs        = (Telerik.WinControls.UI.Data.PositionChangedEventArgs)null;
     this.listItemDataBindingEventArgs    = (ListItemDataBindingEventArgs)null;
     this.listItemDataBoundEventArgs      = (ListItemDataBoundEventArgs)null;
     this.creatingVisualListItemEventArgs = (CreatingVisualListItemEventArgs)null;
     this.keyPressEventArgs    = (KeyPressEventArgs)null;
     this.mouseEventArgs       = (MouseEventArgs)null;
     this.sortStyleChanged     = (SortStyleChangedEventArgs)null;
     this.visualItemFormatting = (VisualItemFormattingEventArgs)null;
     this.keyEventArgs         = (KeyEventArgs)null;
 }
 public PopupEditorNotificationData(
     CreatingVisualListItemEventArgs creatingVisualListItemEventArgs)
 {
     this.notificationContext             = PopupEditorNotificationData.Context.CreatingVisualItem;
     this.creatingVisualListItemEventArgs = creatingVisualListItemEventArgs;
 }
Esempio n. 5
0
 protected virtual void stripsListControl_CreatingVisualListItem(
     object sender,
     CreatingVisualListItemEventArgs args)
 {
     args.VisualItem = (RadListVisualItem) new CommandBarStripsListVisualItem();
 }
 protected virtual void toolstripItemsListControl_CreatingVisualListItem(object sender, CreatingVisualListItemEventArgs args)
 {
     args.VisualItem = new CommandBarItemsListVisualItem();
 }
Esempio n. 7
0
 private void listElement_CreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)
 {
     this.NotifyOwner(new PopupEditorNotificationData(args));
 }
Esempio n. 8
0
 private void element_CreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)
 {
     this.OnCreatingVisualItem(sender, args);
 }