void OnStart() { _controller = new Controller(); _controller.Start(); Status = "Running"; MessageProcessor.NewMessage += new Action<string>(MessageProcessor_NewMessage); }
void OnStop() { if (Controller != null) { Controller.Stop(); Controller = null; } Status = "Stopped"; }
public Controller() { Current = this; }
void OnStop() { if (_controller != null) { _controller.Stop(); _controller = null; } Status = "Stopped"; }