示例#1
0
 //The event. When it is fired it sends back the string for the Movie's title to s+.
 public void EventTesting_myEvent(object o, TestEventArgs e)
 {
     //CrestronConsole.PrintLine("Made it to Callback Event Test. Contents of e: {0}", e.Title);
     HeySimplPlus(e.Title);
 }
示例#2
0
 /*One of our events. All the data we want to play with is in e.
  * in this extended example the event will also send back
  * data to s+. In this case it is the release date of the movie
  */
 public void thisEvent_myEvent(object o, TestEventArgs e)
 {
     //CrestronConsole.PrintLine("Made it to EventTesting Event");
     HeySimplPlus(e.ReleaseDate);// send the data back to S+
     //CrestronConsole.PrintLine("Should have clled the callback function");
 }
示例#3
0
 protected virtual void OnmyEvent(TestEventArgs _args)
 {
     //CrestronConsole.PrintLine("Protected OnMyTest: {0}", _args.Title);
     myEvent(this, _args); //call the event
 }