private void InitializeMenuItems() { this.startOrVoidPomodoroIconMenuItem = new ToolStripMenuItem(StartPomodoroMenuText, null, (a, b) => this.PomodoroMenuClicked()); this.settingsIconMenuItem = new ToolStripMenuItem("&Settings...", null, (a, b) => this.showSettingsCommand.Do(null)); var items = this.renderer.ContextMenuStrip.Items; items.Add(this.startOrVoidPomodoroIconMenuItem); items.Add(new ToolStripSeparator()); items.Add(this.settingsIconMenuItem); items.Add(new ToolStripMenuItem("E&xit", null, (a, b) => Application.Exit())); var eventArgs = new IconControllerEventArgs(); this.collectMenuItemsEvent.Fire(eventArgs); this.renderer.ContextMenuStrip.Items.AddRange(eventArgs.MenuItems.ToArray()); }