示例#1
0
        public MenuListener(IAppContext context, ImageRegistrationPlugin plugin) :
            base(context, plugin.Identity)
        {
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }
            _plugin = plugin;

            plugin.ItemClicked  += OnItemClicked;
            plugin.ViewUpdating += ViewUpdating;
        }
示例#2
0
        public MenuGenerator(IAppContext context, ImageRegistrationPlugin plugin)
        {
            _context = context;
            _plugin  = plugin;
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }

            InitMenu(context);
        }