public void InitFixture()
		{
			mockXmlTreeView = new MockXmlTreeView();
			XmlCompletionDataProvider completionDataProvider = new XmlCompletionDataProvider(SchemaDataItems, DefaultSchemaCompletionData, DefaultNamespacePrefix);
			editor = new XmlTreeEditor(mockXmlTreeView, completionDataProvider);
			editor.LoadXml(GetXml());
		}
예제 #2
0
        /// <summary>
        /// Displays the specified xml as a tree.
        /// </summary>
        public void LoadXml(string xml, XmlCompletionDataProvider completionDataProvider)
        {
            textBox.Clear();
            IsAttributesGridVisible = true;
            ClearAttributes();

            editor = new XmlTreeEditor(this, completionDataProvider);
            editor.LoadXml(xml);

            // Expand document element node.
            if (xmlElementTreeView.Nodes.Count > 0)
            {
                xmlElementTreeView.Nodes[0].Expand();
            }
        }
		public XmlTreeViewContainerControl(XmlSchemaCompletionCollection schemas, XmlSchemaCompletion defaultSchema)
		{
			InitializeComponent();
			InitImages();
			editor = new XmlTreeEditor(this, schemas, defaultSchema);
		}
 public XmlTreeViewContainerControl(XmlSchemaCompletionCollection schemas, XmlSchemaCompletion defaultSchema)
 {
     InitializeComponent();
     InitImages();
     editor = new XmlTreeEditor(this, schemas, defaultSchema);
 }
		/// <summary>
		/// Displays the specified xml as a tree.
		/// </summary>
		public void LoadXml(string xml, XmlCompletionDataProvider completionDataProvider)
		{
			textBox.Clear();
			IsAttributesGridVisible = true;
			ClearAttributes();
			
			editor = new XmlTreeEditor(this, completionDataProvider);
			editor.LoadXml(xml);
			
			// Expand document element node.
			if (xmlElementTreeView.Nodes.Count > 0) {
				xmlElementTreeView.Nodes[0].Expand();
			}
		}
 public void InitFixture()
 {
     mockXmlTreeView = new MockXmlTreeView();
     editor = new XmlTreeEditor(mockXmlTreeView, Schemas, DefaultSchemaCompletion);
     editor.LoadXml(GetXml());
 }