Exemple #1
0
 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);
 }
Exemple #2
0
        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();
        }
Exemple #3
0
        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;
        }
Exemple #4
0
 public void Initialize(IAppContext context, ScenePlugin plugin)
 {
     _context   = context;
     _plugin    = plugin;
     _isLinkMap = false;
 }