Beispiel #1
0
        public VSDocumentFormPane(IAnkhServiceProvider context, VSDocumentInstance instance, VSEditorControl form)
            : base(context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            else if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }
            else if (form == null)
            {
                throw new ArgumentNullException("form");
            }

            _context  = context;
            _instance = instance;
            _form     = form;
            _host     = new VSDocumentHost(this);
        }
        public VSDocumentFormPane(IAnkhServiceProvider context, VSDocumentInstance instance, FrameworkElement host)
            : base(context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            else if (instance == null)
            {
                throw new ArgumentNullException("instance");
            }
            else if (host == null)
            {
                throw new ArgumentNullException("host");
            }

            _context  = context;
            _instance = instance;
            _form     = null;
            Content   = host;
            _host     = new VSDocumentHost(this);
        }