I haven't tried in C# yet.
Am I doing something wrong here?
- Code: Select all
sig Update
interface IView
event finishedUpdate as Update
class X implements IView
event finishedUpdate as Update
class MyProgram
def main
x = X()
raise x.finishedUpdate
sig Update
interface IView
event finishedUpdate as Update
class X implements IView
event finishedUpdate as Update
class MyProgram
def main
x = X()
raise x.finishedUpdate
sig UpdateHandler
interface IView
event finishedUpdate as UpdateHandler
class X implements IView
event finishedUpdate as UpdateHandler
def raiseFinishedUpdate
raise x.finishedUpdate
class MyProgram
def main
x = X()
x.raiseFinishedUpdate
sig UpdateHandler
interface IView
event finishedUpdate as UpdateHandler
class X implements IView
event finishedUpdate as UpdateHandler
def update
# do some update stuff
# and then:
raise x.finishedUpdate
class MyProgram
def main
x = X()
x.update
Cannot raise events for other objects.
Users browsing this forum: No registered users and 15 guests