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"); }
public bool Equals(Message other) { return other.Identifier == Identifier; }
public override void ProcessMessage(Message message) { SetLayoutActionMessage msg = message as SetLayoutActionMessage; if (msg != null) Action.SetLayout(msg.Rows, msg.Columns); }
public override void ProcessMessage(Message message) { // There should be no messages received. throw new NotImplementedException(); }
public override void ProcessMessage(Message message) { if (message is ActionClickedMessage) Action.Click(); }
public override void ProcessMessage(Message message) { }