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); }
public void IdleReceivedSubscribe(IdleEventHandler eventHandler) { IdleReceived += eventHandler; }
public void IdleReceivedUnsubscribe(IdleEventHandler eventHandler) { IdleReceived -= eventHandler; }
protected override void Initialize() { Load += new LoadEventHandler(LoadEvent); Idle += new IdleEventHandler(IdleEvent); }