MDTableContext CreateMDTableContext() { var tab = documentTabService.ActiveTab; if (tab != null) { var listView = FindListView(tab); if (listView != null && UIUtils.HasSelectedChildrenFocus(listView)) { return(MenuMDTableCommand.ToMDTableContext(listView, false)); } } return(null); }
protected sealed override MDTableContext CreateContext(IMenuItemContext context) => MenuMDTableCommand.ToMDTableContext(context.CreatorObject.Object, true);