示例#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");
        }
示例#2
0
文件: Message.cs 项目: nhannd/Xian
 public bool Equals(Message other)
 {
     return other.Identifier == Identifier;
 }
示例#3
0
		public override void ProcessMessage(Message message)
		{
			SetLayoutActionMessage msg = message as SetLayoutActionMessage;
			if (msg != null)
				Action.SetLayout(msg.Rows, msg.Columns);
		}
示例#4
0
		public override void ProcessMessage(Message message)
		{
			// There should be no messages received.
			throw new NotImplementedException();
		}
示例#5
0
	    public override void ProcessMessage(Message message)
		{
			if (message is ActionClickedMessage)
				Action.Click();
		}
示例#6
0
		public override void ProcessMessage(Message message)
		{
		}