public LocatorPresenter(IAppContext context, ILocatorView view, LocatorPlugin plugin) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; _map = _context.MapControl.Map; _plugin = plugin; }
public MenuGenerator(IAppContext context, LocatorPlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } // if (pluginManager == null) throw new ArgumentNullException("pluginManager"); _plugin = plugin; _context = context; _menuManager = _context.MainView.RibbonManager; _commands = new YutaiCommands(_context, plugin.Identity); _commands.Plugin = plugin; InitMenus(); }
public DockPanelService(IAppContext context, LocatorPresenter presenter, LocatorPlugin plugin) { if (context == null) { throw new ArgumentNullException("context"); } if (presenter == null) { throw new ArgumentNullException("presenter"); } if (plugin == null) { throw new ArgumentNullException("plugin"); } _context = context; _presenter = presenter; _plugin = plugin; var panels = context.DockPanels; //panels.Lock(); //var panel = panels.Add(presenter.GetInternalObject() as IDockPanelView, plugin.Identity); //panels.Unlock(); }