mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-03-29 18:17:05 +00:00
Use Utilities.SetWindowTitle()
This commit is contained in:
parent
800b6483e7
commit
5ec59ff280
|
@ -103,9 +103,7 @@ namespace Examples.WinForms
|
||||||
{
|
{
|
||||||
using (W01_First_Window example = new W01_First_Window())
|
using (W01_First_Window example = new W01_First_Window())
|
||||||
{
|
{
|
||||||
// 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