Esempio n. 1
0
        static string GetExceptionTypeName(ContextMenuEntryContext context)
        {
            var vm = ExceptionsControlCreator.ExceptionsVM;

            if (vm == null)
            {
                return(null);
            }
            var td = GetTypeDef(context);

            if (td == null)
            {
                return(null);
            }
            if (!TypeTreeNode.IsException(td))
            {
                return(null);
            }
            var name = GetExceptionString(td);

            if (vm.Exists(ExceptionType.DotNet, name))
            {
                return(null);
            }
            return(name);
        }