Esempio n. 1
0
        public override void ProcessMessage(Message message)
        {
            if (message is MouseMoveMessage)
            {
                ProcessMouseMoveMessage((MouseMoveMessage)message);
                //TODO: ideally, the tilecontroller would have an event and the handler would listen
                MousePosition = _tileController.Location;
                return;
            }
            if (message is MouseMessage)
            {
                ProcessMouseMessage((MouseMessage)message);
                //TODO: ideally, the tilecontroller would have an event and the handler would listen
                MousePosition = _tileController.Location;
                return;
            }
            if (message is MouseWheelMessage)
            {
                ProcessMouseWheelMessage((MouseWheelMessage)message);
                return;
            }
            if (message is UpdatePropertyMessage)
            {
                ProcessUpdateMessage((UpdatePropertyMessage)message);
            }

            //throw new InvalidOperationException("Unexpected message");
        }
Esempio n. 2
0
 public bool Equals(Message other)
 {
     return other.Identifier == Identifier;
 }
Esempio n. 3
0
		public override void ProcessMessage(Message message)
		{
			SetLayoutActionMessage msg = message as SetLayoutActionMessage;
			if (msg != null)
				Action.SetLayout(msg.Rows, msg.Columns);
		}
Esempio n. 4
0
		public override void ProcessMessage(Message message)
		{
			// There should be no messages received.
			throw new NotImplementedException();
		}
Esempio n. 5
0
	    public override void ProcessMessage(Message message)
		{
			if (message is ActionClickedMessage)
				Action.Click();
		}
Esempio n. 6
0
		public override void ProcessMessage(Message message)
		{
		}