mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-23 13:11:09 +00:00
* ExampleBrowser.cs: Replaced tabs with spaces.
This commit is contained in:
parent
5fadf449be
commit
25fda5ae19
|
@ -60,23 +60,23 @@ namespace Examples
|
||||||
|
|
||||||
private void treeViewSamples_AfterSelect(object sender, TreeViewEventArgs e)
|
private void treeViewSamples_AfterSelect(object sender, TreeViewEventArgs e)
|
||||||
{
|
{
|
||||||
const string no_docs = "Documentation has not been entered.";
|
const string no_docs = "Documentation has not been entered.";
|
||||||
const string no_source = "Source code 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))
|
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 docs = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation + "Doc");
|
||||||
string source = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation);
|
string source = (string)Resources.ResourceManager.GetObject(((ExampleInfo)e.Node.Tag).Attribute.Documentation);
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(docs))
|
if (String.IsNullOrEmpty(docs))
|
||||||
richTextBoxDescription.Text = no_docs;
|
richTextBoxDescription.Text = no_docs;
|
||||||
else
|
else
|
||||||
richTextBoxDescription.Rtf = docs;
|
richTextBoxDescription.Rtf = docs;
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(source))
|
if (String.IsNullOrEmpty(source))
|
||||||
richTextBoxSource.Text = no_source;
|
richTextBoxSource.Text = no_source;
|
||||||
else
|
else
|
||||||
richTextBoxSource.Text = source;
|
richTextBoxSource.Text = source;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue