Example #1
0
        PlantState targetPlant = null;  // The current plant we're going after

        // Set up any event handlers that we want when first initialized
        protected override void Initialize()
        {
            Load += new LoadEventHandler(LoadEvent);
            Idle += new IdleEventHandler(IdleEvent);
        }
Example #2
0
 public void IdleReceivedSubscribe(IdleEventHandler eventHandler)
 {
     IdleReceived += eventHandler;
 }
Example #3
0
 public void IdleReceivedUnsubscribe(IdleEventHandler eventHandler)
 {
     IdleReceived -= eventHandler;
 }
 protected override void Initialize() 
 {
     Load += new LoadEventHandler(LoadEvent);
     Idle += new IdleEventHandler(IdleEvent);
 }