Ejemplo n.º 1
0
 public ContextMenuBuilder(IMenuModelAdapter <TModel> modelAdapter, ContextMenuActionRegistry actionRegistry, TModel model)
 {
     this.model          = model;
     this.actionRegistry = actionRegistry;
     this.modelAdapter   = modelAdapter;
 }
Ejemplo n.º 2
0
 public ContextMenuLogic(IContextMenuHandler?handler, IMenuModelAdapter <TModel> modelAdapter)
 {
     this.handler        = handler;
     this.modelAdapter   = modelAdapter;
     this.actionRegistry = new ContextMenuActionRegistry();
 }