public TaxonMenuFactory(TaxonViewModel taxon, TaxonExplorer explorer, MessageFormatterFunc formatter) { this.Taxon = taxon; this.Explorer = explorer; this.FormatterFunc = formatter; _builder = new MenuItemBuilder(formatter); }
public TaxonMenuFactory(TaxonViewModel taxon, TaxonExplorer explorer, MessageFormatterFunc formatter) { this.Taxon = taxon; this.Explorer = explorer; this.FormatterFunc = formatter; _builder = new MenuItemBuilder(formatter); }
public ContextMenuBuilder(MessageFormatterFunc messageFormatter, ContextMenu menu = null) { _formatter = messageFormatter; _menu = (menu == null ? new ContextMenu() : menu); _itemBuilder = new MenuItemBuilder(_formatter); _itemBuilder.EndAction = (menuItem) => { _menu.Items.Add(menuItem); }; }
public MenuItemBuilder(MessageFormatterFunc formatter = null) { _formatter = formatter; }