From 0ecdcd19b3baa17f83ee121d304cca5694914902 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 12:24:57 +0000 Subject: [PATCH] Use Utilities.SetWindowTitle --- Source/Examples/WinForms/W03_Extensions.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/Examples/WinForms/W03_Extensions.cs b/Source/Examples/WinForms/W03_Extensions.cs index fa7fb5fb..75ab9d66 100644 --- a/Source/Examples/WinForms/W03_Extensions.cs +++ b/Source/Examples/WinForms/W03_Extensions.cs @@ -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(); } }