public bool IsSameMethod(IMethodPointer pointer)
        {
            IObjectIdentity o = pointer as IObjectIdentity;

            if (o != null)
            {
                return(IsSameObjectRef(o));
            }
            return(false);
        }
Ejemplo n.º 2
0
        public bool IsSameMethod(IMethodPointer method)
        {
            FireEventMethod fe = method as FireEventMethod;

            if (fe != null)
            {
                return(fe.Event.IsSameObjectRef(_event));
            }
            return(false);
        }
Ejemplo n.º 3
0
        public bool IsSameMethod(IMethodPointer method)
        {
            CustomMethodPointer cp = method as CustomMethodPointer;

            if (cp != null)
            {
                return(cp.WholeId == this.WholeId);
            }
            return(false);
        }
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MathExpMethod mem = pointer as MathExpMethod;

            if (mem != null && mem.MathExpression != null)
            {
                return(mem.MathExpression.IsSameMethod(_exp));
            }
            return(false);
        }
Ejemplo n.º 5
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MethodDataTransfer m = pointer as MethodDataTransfer;

            if (m != null)
            {
                return(m.ID == this.ID);
            }
            return(false);
        }
Ejemplo n.º 6
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MethodClassInherited mci = pointer as MethodClassInherited;

            if (mci != null)
            {
                return(mci.WholeId == this.WholeId);
            }
            return(false);
        }
        public override IAction CreateMethodAction(ILimnorDesignPane designPane, IClass holder, IMethod scopeMethod, IActionsHolder actsHolder)
        {
            IMethodPointer mi = DesignUtil.EditFrequentlyUsedMethodList(designPane.Loader.Project, designPane.RootXmlNode, _menuData, designPane, designPane.PaneHolder.FindForm());

            if (mi != null)
            {
                return(DesignUtil.OnCreateAction(holder, mi, scopeMethod, actsHolder, designPane.PaneHolder, designPane.RootXmlNode));
            }
            return(null);
        }
Ejemplo n.º 8
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            BreakActionMethod mrm = pointer as BreakActionMethod;

            if (mrm != null)
            {
                return(_ownerAction.ScopeMethod.IsSameMethod(mrm._ownerAction.ScopeMethod));
            }
            return(false);
        }
        public override bool ExecuteMenuCommand(LimnorProject project, IClass holder, XmlNode node, MultiPanes pane, IMethod scopeMethod, IActionsHolder actsHolder)
        {
            IMethodPointer mi = DesignUtil.EditFrequentlyUsedMethodList(project, node, _menuData, pane.Loader.DesignPane, pane.FindForm());

            if (mi != null)
            {
                return(DesignUtil.OnCreateAction(holder, mi, scopeMethod, actsHolder, pane, node) != null);
            }
            return(false);
        }
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MethodPointer mp = pointer as MethodPointer;

            if (mp != null)
            {
                return(string.Compare(mp.MethodSignature, this.MethodSignature, StringComparison.Ordinal) == 0);
            }
            return(false);
        }
        public bool IsSameMethod(IMethodPointer pointer)
        {
            CustomInterfaceMethodPointer cp = pointer as CustomInterfaceMethodPointer;

            if (cp != null)
            {
                if (_method != null)
                {
                    return(_method.IsSameMethod(cp.MethodPointed));
                }
            }
            return(false);
        }
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MethodReturnMethod mrm = pointer as MethodReturnMethod;

            if (mrm != null)
            {
                if (_ownerAction.ScopeMethod != null && mrm._ownerAction.ScopeMethod != null)
                {
                    return(_ownerAction.ScopeMethod.IsSameMethod(mrm._ownerAction.ScopeMethod));
                }
            }
            return(false);
        }
Ejemplo n.º 13
0
        public bool IsSameMethod(IMethodPointer pointer)
        {
            SetterPointer sp = pointer as SetterPointer;

            if (sp != null)
            {
                if (sp.SetProperty.IsSameObjectRef(SetProperty))
                {
                    return(true);
                }
            }
            return(false);
        }
        public bool IsSameMethod(IMethodPointer pointer)
        {
            MethodAction m = pointer as MethodAction;

            if (m != null)
            {
                return(_method.IsSameMethod(m));
            }
            MethodActionPointer mp = pointer as MethodActionPointer;

            if (mp != null)
            {
                return(_method.IsSameMethod(mp.MethodPointed));
            }
            return(false);
        }
 public bool IsSameMethod(IMethodPointer pointer)
 {
     return(pointer is NoActionMethod);
 }