<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Event</Title>
			<Shortcut>event</Shortcut>
			<Description>Code snippet for an event and the corresponding On... method</Description>
			<Author>Roland Weigelt</Author>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>eventName</ID>
					<ToolTip>Name of the event.</ToolTip>
					<Default>EventRaised</Default>
				</Literal>
				<Literal>
					<ID>argsType</ID>
					<ToolTip>Type of the event args.</ToolTip>
					<Default>EventArgs</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp">
	public event EventHandler&lt;$argsType$&gt; $eventName$;

	protected virtual void On$eventName$($argsType$ e)
	{
		EventHandler&lt;$argsType$&gt; handler = this.$eventName$;
		if (handler!=null) handler( this, e );
	}
	$end$
			</Code>
		</Snippet>
	</CodeSnippet>

</CodeSnippets>