main
1using System.Collections.Generic;
2using momoney.presentation.model.menu.file;
3using MoMoney.Presentation.Winforms.Resources;
4
5namespace MoMoney.Presentation.Model.Menu.window
6{
7 public interface IWindowMenu : ISubMenu
8 {
9 }
10
11 public class WindowMenu : SubMenu, IWindowMenu
12 {
13 public override string name
14 {
15 get { return "&Window"; }
16 }
17
18 public override IEnumerable<IMenuItem> all_menu_items()
19 {
20 yield return Create
21 .a_menu_item()
22 .named("&Close Window")
23 .represented_by(ApplicationIcons.CloseWindow)
24 .that_executes<ICloseWindowCommand>()
25 .build();
26 }
27 }
28}