public SceneViewPresenter(IAppContext context, ISceneView view, ScenePlugin plugin) : base(view) { if (context == null) { throw new ArgumentNullException("context"); } _context = context; _plugin = plugin; view.Initialize(_context, _plugin); }
public MenuGenerator(IAppContext context, ScenePlugin 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 as IScenePlugin; InitMenus(); }
public SceneViewService(IAppContext context, SceneViewPresenter presenter, ScenePlugin 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; }
public void Initialize(IAppContext context, ScenePlugin plugin) { _context = context; _plugin = plugin; _isLinkMap = false; }