This enables the eventwindow to be refreshed whenever messages are logged.
这样,每当在日志中记录消息时,会刷新事件窗口。
2
To create an event handler with the default name, you just double-click the event name in the Properties window. The event handler is created and the code-behind file is opened in the code editor.