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; }
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; }
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); }