Beispiel #1
0
        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);
        }
Beispiel #2
0
 protected sealed override MDTableContext CreateContext(IMenuItemContext context) => MenuMDTableCommand.ToMDTableContext(context.CreatorObject.Object, true);