public virtual bool StartWasCalledWith(string username, string password, string flowId, Action<Message> callback){ return ( username.Equals(StartParameter_username_LastCalledWith) && password.Equals(StartParameter_password_LastCalledWith) && flowId.Equals(StartParameter_flowId_LastCalledWith) && callback.Equals(StartParameter_callback_LastCalledWith) ); }
public override bool Equals(object obj) { if (obj is ActionEventCapsule && _callback != null) { var del = (ActionEventCapsule)obj; return(_callback.Equals(del._callback)); } return(base.Equals(obj)); }
public void AddOnce(Action<IBaseSignal, object[]> callback) { foreach (Delegate del in OnceBaseListener.GetInvocationList()) { Action<IBaseSignal, object[]> action = (Action<IBaseSignal, object[]>)del; if (callback.Equals(action)) //If this callback exists already, ignore this addlistener return; } OnceBaseListener += callback; }
public bool canMoveGap(Action where) { bool retVal = true; int absPos = getPositionOf(0); if (where.Equals(LEFT)) retVal = (getYCoord(absPos) != 0); else if (where.Equals(RIGHT)) retVal = (getYCoord(absPos) != 2); else if (where.Equals(UP)) retVal = (getXCoord(absPos) != 0); else if (where.Equals(DOWN)) retVal = (getXCoord(absPos) != 2); return retVal; }