Пример #1
0
        public void ProvideEditor(VSEditorControl form, Guid factoryId, out object doc, out object pane)
        {
            VSDocumentInstance dc = new VSDocumentInstance(Context, factoryId);
            pane = new VSDocumentFormPane(Context, dc, form);

            doc = dc;
        }
Пример #2
0
        public void ProvideEditor(FrameworkElement host, Guid factoryId, out object doc, out object pane)
        {
            VSDocumentInstance dc = new VSDocumentInstance(Context, factoryId);

            pane = new VSDocumentFormPane(Context, dc, host);

            doc = dc;
        }
Пример #3
0
        public void ProvideEditor(VSEditorControl form, Guid factoryId, out object doc, out object pane)
        {
            VSDocumentInstance dc = new VSDocumentInstance(Context, factoryId);

            pane = new VSDocumentFormPane(Context, dc, form);

            doc = dc;
        }
Пример #4
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);
        }
Пример #5
0
        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);
        }