mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 20:11:04 +00:00
Added warning when launching the new sample browser.
Removed unused code.
This commit is contained in:
parent
d91cf4101c
commit
6b56856da7
|
@ -14,6 +14,8 @@ namespace Examples
|
||||||
|
|
||||||
//PrivateFontCollection font_collection = new PrivateFontCollection();
|
//PrivateFontCollection font_collection = new PrivateFontCollection();
|
||||||
|
|
||||||
|
bool show_warning = true;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
@ -52,6 +54,16 @@ namespace Examples
|
||||||
LoadSamplesFromAssembly(Assembly.GetExecutingAssembly());
|
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
|
#endregion
|
||||||
|
|
||||||
#region Private Members
|
#region Private Members
|
||||||
|
|
|
@ -17,7 +17,7 @@ namespace Examples
|
||||||
{
|
{
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
//using (Form browser = new ExampleLauncher())
|
|
||||||
using (Form browser = new ExampleBrowser())
|
using (Form browser = new ExampleBrowser())
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in a new issue