public void OnStartup() { Boss boss = ObjectModel.Create("Application"); var handler = boss.Get<IMenuHandler>(); handler.Register(this, 53, () => {--m_current; DoHandle();}, this.DoCanGotoPreviousError); handler.Register(this, 54, () => {++m_current; DoHandle();}, this.DoCanGotoNextError); m_controller = new ErrorsController(); Unused.Value = m_controller.Retain(); }