mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 11:15:29 +00:00
Use Utilities.SetWindowTitle
This commit is contained in:
parent
5e1d36e44d
commit
0ecdcd19b3
|
@ -125,9 +125,7 @@ namespace Examples.WinForms
|
||||||
{
|
{
|
||||||
using (W03_Extensions example = new W03_Extensions())
|
using (W03_Extensions example = new W03_Extensions())
|
||||||
{
|
{
|
||||||
// Get the title and category of this example using reflection.
|
Utilities.SetWindowTitle(example);
|
||||||
ExampleAttribute info = ((ExampleAttribute)example.GetType().GetCustomAttributes(false)[0]);
|
|
||||||
example.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
|
|
||||||
example.ShowDialog();
|
example.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue