/// <summary> /// Assumed {FindSelectionMode} is assigned (use DetermineFindSelectionMode()) /// find selected items and assign to {SelectedList} and {SelectedIdList} /// </summary> /// <param name="nextCommand"></param> /// <returns></returns> public static IScriptCommand FindSelectedItems(IScriptCommand nextCommand = null) { return (HubScriptCommands.DetermineFindSelectionMode("{FindSelectionMode}", ScriptCommands.Switch("{FindSelectionMode}", new Dictionary <FindSelectionMode, IScriptCommand>() { { FindSelectionMode.IChildInfo, HubScriptCommands.FindSelectedItemsUsingIChildInfo() }, { FindSelectionMode.GridView, HubScriptCommands.FindSelectedItemsUsingGridView() } }, HubScriptCommands.FindSelectedItemsUsingHitTest(), nextCommand))); }