private void OnConsoleChanged() { EventHandler handler = ConsoleChanged; if (handler != null) handler(this, EventArgs.Empty); }