Use Utilities.SetWindowTitle
This commit is contained in:
parent
586e982ce0
commit
6f7286e7e0
1 changed files with 1 additions and 3 deletions
|
@ -125,9 +125,7 @@ namespace Examples.WinForms
|
|||
{
|
||||
using (W03_Extensions example = new W03_Extensions())
|
||||
{
|
||||
// Get the title and category of this example using reflection.
|
||||
ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
|
||||
example.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
||||
Utilities.SetWindowTitle(example);
|
||||
example.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue