Beispiel #1
0
        private void OnCustomGetSelectedObjects(CustomGetSelectedObjectsArgs e)
        {
            EventHandler <CustomGetSelectedObjectsArgs> customGetSelectedObjectsHandler = CustomGetSelectedObjects;

            if (customGetSelectedObjectsHandler != null)
            {
                customGetSelectedObjectsHandler(this, e);
            }
        }
Beispiel #2
0
 public override IList GetSelectedObjects()
 {
     if (Grid != null && GridView != null)
     {
         var selectedObjects = GetSelectedObjects(GetFocusedGridView(GridView));
         var e = new CustomGetSelectedObjectsArgs(selectedObjects);
         OnCustomGetSelectedObjects(e);
         if (e.Handled)
         {
             return(e.List);
         }
         return(selectedObjects);
     }
     return(base.GetSelectedObjects());
 }
 public override IList GetSelectedObjects() {
     if (Grid != null && GridView != null) {
         var focusedGridView = GetFocusedGridView(GridView);
         var selectedObjects = GetSelectedObjects(focusedGridView);
         var e = new CustomGetSelectedObjectsArgs(selectedObjects);
         OnCustomGetSelectedObjects(e);
         if (e.Handled)
             return e.List;
         return selectedObjects;
     }
     return base.GetSelectedObjects();
 }
 private void OnCustomGetSelectedObjects(CustomGetSelectedObjectsArgs e) {
     EventHandler<CustomGetSelectedObjectsArgs> customGetSelectedObjectsHandler = CustomGetSelectedObjects;
     if (customGetSelectedObjectsHandler != null) customGetSelectedObjectsHandler(this, e);
 }