Added warning when launching the new sample browser.

Removed unused code.
This commit is contained in:
the_fiddler 2009-05-31 15:13:28 +00:00
parent d91cf4101c
commit 6b56856da7
2 changed files with 13 additions and 1 deletions

View file

@ -14,6 +14,8 @@ namespace Examples
//PrivateFontCollection font_collection = new PrivateFontCollection();
bool show_warning = true;
#endregion
#region Constructors
@ -52,6 +54,16 @@ namespace Examples
LoadSamplesFromAssembly(Assembly.GetExecutingAssembly());
}
protected override void OnShown(EventArgs e)
{
if (show_warning)
{
MessageBox.Show("The new Sample Browser is not complete. Please report any issues at http://www.opentk.com/project/issues.",
"Work in Progress", MessageBoxButtons.OK, MessageBoxIcon.Information);
show_warning = false;
}
}
#endregion
#region Private Members

View file

@ -17,7 +17,7 @@ namespace Examples
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//using (Form browser = new ExampleLauncher())
using (Form browser = new ExampleBrowser())
{
try