76 return String.Format(
"x={0,2},y={1,2}",
X,
Y);
The namespace containing all Design Pattern Examples implemented in C#.
MessageType
Type of message handled by MessageWindow.
@ Close
Window is asked to close itself, generally sent by the window itself in response to a button up in a ...
@ ButtonDown
Selects a window based on position.
@ ButtonUp
Take an action on the currently selected window.
Represents a message sent to the windows. A message contains a type and a position.
Message(MessageType type, MessagePosition position)
Constructor.
override string ToString()
Convert this message to a string.
MessagePosition Position
Position of message when the message was sent. In a real system, this would generally represent the p...
MessageType MessageType
Value from the MessageType enumeration indicating the type of this message.
Position of the message in global coordinates (same scope of coordinates as windows)....
override string ToString()
Convert this position to a string.
MessagePosition(int x, int y)
Constructor.