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) );
}
Example #2
0
 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;
 }
Example #3
0
	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;
	}