Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
5fc72461
Commit
5fc72461
authored
Feb 17, 2013
by
Vinicius Jarina
Browse files
Mono-style format.
parent
a0e1671c
Changes
43
Expand all
Hide whitespace changes
Inline
Side-by-side
tests/Entity.cs
View file @
5fc72461
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
LuaInterfaceTest.Mock
{
public
class
Entity
{
public
event
EventHandler
<
EventArgs
>
Clicked
;
public
class
Entity
{
public
event
EventHandler
<
EventArgs
>
Clicked
;
protected
virtual
void
OnEntityClicked
(
EventArgs
e
)
{
EventHandler
<
EventArgs
>
handler
=
Clicked
;
protected
virtual
void
OnEntityClicked
(
EventArgs
e
)
{
EventHandler
<
EventArgs
>
handler
=
Clicked
;
if
(
handler
!=
null
)
{
// Use the () operator to raise the event.
handler
(
this
,
e
);
}
}
if
(
handler
!=
null
)
{
// Use the () operator to raise the event.
handler
(
this
,
e
);
}
}
public
Entity
()
{
public
Entity
()
{
}
}
public
void
Click
()
{
OnEntityClicked
(
new
EventArgs
());
}
}
public
void
Click
()
{
OnEntityClicked
(
new
EventArgs
());
}
}
}
tests/LuaTests.cs
View file @
5fc72461
This diff is collapsed.
Click to expand it.
tests/TestLua.cs
View file @
5fc72461
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment