コード例 #1
0
 private void OnCustomGetSelectedObjects(CustomGetSelectedObjectsArgs e) {
     EventHandler<CustomGetSelectedObjectsArgs> customGetSelectedObjectsHandler = CustomGetSelectedObjects;
     if (customGetSelectedObjectsHandler != null) customGetSelectedObjectsHandler(this, e);
 }
コード例 #2
0
 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();
 }