From 25fda5ae1959d617eab2caee479b3c0213ec3839 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 21 Apr 2009 12:58:16 +0000 Subject: [PATCH] * ExampleBrowser.cs: Replaced tabs with spaces. --- Source/Examples/ExampleBrowser.cs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Source/Examples/ExampleBrowser.cs b/Source/Examples/ExampleBrowser.cs index dab1015a..a190cb26 100644 --- a/Source/Examples/ExampleBrowser.cs +++ b/Source/Examples/ExampleBrowser.cs @@ -60,23 +60,23 @@ namespace Examples private void treeViewSamples_AfterSelect(object sender, TreeViewEventArgs e) { - const string no_docs = "Documentation has not been entered."; - const string no_source = "Source code has not been entered."; - + const string no_docs = "Documentation has not been entered."; + const string no_source = "Source code has not been entered."; + if (e.Node.Tag != null && !String.IsNullOrEmpty(((ExampleInfo)e.Node.Tag).Attribute.Documentation)) { - string docs = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation + "Doc"); - string source = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation); - - if (String.IsNullOrEmpty(docs)) - richTextBoxDescription.Text = no_docs; - else - richTextBoxDescription.Rtf = docs; - - if (String.IsNullOrEmpty(source)) - richTextBoxSource.Text = no_source; - else - richTextBoxSource.Text = source; + string docs = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation + "Doc"); + string source = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation); + + if (String.IsNullOrEmpty(docs)) + richTextBoxDescription.Text = no_docs; + else + richTextBoxDescription.Rtf = docs; + + if (String.IsNullOrEmpty(source)) + richTextBoxSource.Text = no_source; + else + richTextBoxSource.Text = source; } else {