Last active
August 29, 2015 14:03
-
-
Save Vannevelj/f1bcd31e45689f1e6bf7 to your computer and use it in GitHub Desktop.
Eventcalling from WinRT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class TestClass | |
{ | |
public event TypedEventHandler<TestClass, LogoutEventArgs> Logout; | |
public void DoSomething() | |
{ | |
if (Logout != null) | |
{ | |
Logout(this, new LogoutEventArgs()); | |
} | |
} | |
} | |
var test = new ShowpadLibrary.TestClass(); | |
test.onlogout = function (event) { | |
console.log("haha"); | |
}; | |
test.doSomething(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment