Added warning when launching the new sample browser.
Removed unused code.
This commit is contained in:
parent
9794c27915
commit
5a0b27faa1
2 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace Examples
|
|||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
//using (Form browser = new ExampleLauncher())
|
||||
|
||||
using (Form browser = new ExampleBrowser())
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Reference in a new issue