Commit 5fc72461 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Mono-style format.

parent a0e1671c
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text; using System.Text;
namespace LuaInterfaceTest.Mock namespace LuaInterfaceTest.Mock
{ {
public class Entity public class Entity
{ {
public event EventHandler<EventArgs> Clicked; public event EventHandler<EventArgs> Clicked;
protected virtual void OnEntityClicked(EventArgs e) protected virtual void OnEntityClicked (EventArgs e)
{ {
EventHandler<EventArgs> handler = Clicked; EventHandler<EventArgs> handler = Clicked;
if (handler != null) if (handler != null) {
{ // Use the () operator to raise the event.
// Use the () operator to raise the event. handler (this, e);
handler(this, e); }
} }
}
public Entity() public Entity ()
{ {
} }
public void Click() public void Click ()
{ {
OnEntityClicked(new EventArgs()); OnEntityClicked (new EventArgs ());
} }
} }
} }
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment