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