private void propertyGrid2_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e) { string text = "";//treeView1.SelectedNode.Text; if (e.OldSelection != null) { GridItem selectedItem = propertyGrid2.SelectedGridItem; if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null) { text = selectedItem.Value.ToString(); } } richTextBox1.Text = text; /* if (text.IsXml()) * { * webBrowser1.DocumentStream = text.DocumentXml(); * } * else * { * webBrowser1.DocumentText = text; * }*/ HighlightColors.HighlightRTF(richTextBox1); }
private void propertyGrid1_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e) { string text = this.BtsOrchestration.FullName; if (e.OldSelection != null) { GridItem selectedItem = propertyGrid1.SelectedGridItem; if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null) { text = selectedItem.Value.ToString(); } } /* if (text.IsXml()) * { * XDocument xDoc = XDocument.Parse(text); * text = xDoc.ToString(); * }*/ richTextBox1.Text = text; /* if (text.IsXml()) * { * webBrowser1.DocumentStream = text.DocumentXml(); * } * else * { * webBrowser1.DocumentText = text; * }*/ HighlightColors.HighlightRTF(richTextBox1); }
private void propertyGridArtifacts_SelectedGridItemChanged(object sender, SelectedGridItemChangedEventArgs e) { string text = ""; //treeView1.SelectedNode.Text; if (e.OldSelection != null) { GridItem selectedItem = propertyGridArtifacts.SelectedGridItem; if (selectedItem != null && selectedItem.GridItemType == GridItemType.Property && selectedItem.Value != null) { text = selectedItem.Value.ToString(); } } richTextBoxArtifactProperties.Text = text; HighlightColors.HighlightRTF(richTextBoxArtifactProperties); }
private void ApplicationAssemblies_Load(object sender, EventArgs e) { LoadApplications(); formText = this.Text; HighlightColors.HighlightRTF(richTextBox1); }