private void OnCustomGetSelectedObjects(CustomGetSelectedObjectsArgs e) { EventHandler<CustomGetSelectedObjectsArgs> customGetSelectedObjectsHandler = CustomGetSelectedObjects; if (customGetSelectedObjectsHandler != null) customGetSelectedObjectsHandler(this, e); }
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(); }