Added default application icon.

This commit is contained in:
the_fiddler 2009-11-04 00:57:14 +00:00
parent eec0033297
commit e60df8ba28
4 changed files with 20 additions and 9 deletions

View file

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // This code was generated by a tool.
// Runtime Version:2.0.50727.4918 // Runtime Version:2.0.50727.4200
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@ -60,6 +60,13 @@ namespace OpenTK.Examples.Properties {
} }
} }
internal static System.Drawing.Icon App {
get {
object obj = ResourceManager.GetObject("App", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to #region License /// Looks up a localized string similar to #region License
///// /////
@ -403,7 +410,7 @@ namespace OpenTK.Examples.Properties {
///using OpenTK; ///using OpenTK;
///using OpenTK.Graphics; ///using OpenTK.Graphics;
///using OpenTK.Graphics.OpenGL; ///using OpenTK.Graphics.OpenGL;
/// /// [rest of string was truncated]&quot;;. ///u [rest of string was truncated]&quot;;.
/// </summary> /// </summary>
internal static string JuliaSetFractal { internal static string JuliaSetFractal {
get { get {
@ -448,6 +455,7 @@ namespace OpenTK.Examples.Properties {
///#endregion ///#endregion
/// ///
///using System; ///using System;
///using System.Diagnostics;
///using System.Threading; ///using System.Threading;
///using System.IO; ///using System.IO;
/// ///
@ -458,8 +466,7 @@ namespace OpenTK.Examples.Properties {
///{ ///{
/// [Example(&quot;Playback&quot;, ExampleCategory.OpenAL, &quot;1.1&quot;, Documentation=&quot;Playback&quot;)] /// [Example(&quot;Playback&quot;, ExampleCategory.OpenAL, &quot;1.1&quot;, Documentation=&quot;Playback&quot;)]
/// public class Playback /// public class Playback
/// { /// [rest of string was truncated]&quot;;.
/// static readonly [rest of string was truncated]&quot;;.
/// </summary> /// </summary>
internal static string Playback { internal static string Playback {
get { get {
@ -585,6 +592,7 @@ namespace OpenTK.Examples.Properties {
///#endregion ///#endregion
/// ///
///using System; ///using System;
///using System.Diagnostics;
///using System.Collections.Generic; ///using System.Collections.Generic;
///using System.Text; ///using System.Text;
///using System.Threading; ///using System.Threading;
@ -595,9 +603,7 @@ namespace OpenTK.Examples.Properties {
/// ///
///namespace Examples.OpenAL ///namespace Examples.OpenAL
///{ ///{
/// // Not working correctly (sound pops). /// // Not working correctly (sound pops [rest of string was truncated]&quot;;.
///
/// //[Example(&quot;Strea [rest of string was truncated]&quot;;.
/// </summary> /// </summary>
internal static string StreamingPlayback { internal static string StreamingPlayback {
get { get {
@ -749,7 +755,7 @@ namespace OpenTK.Examples.Properties {
/// ///
///namespace Examples.Tutorial ///namespace Examples.Tutorial
///{ ///{
/// [Example(&quot;Vertex Buffer Objects&quot;, ExampleCategory.OpenGL, &quot;1 [rest of string was truncated]&quot;;. /// [Example(&quot;Static Vertex Buffer Objects&quot;, ExampleCategory.Ope [rest of string was truncated]&quot;;.
/// </summary> /// </summary>
internal static string VertexBufferObject { internal static string VertexBufferObject {
get { get {

View file

@ -38,7 +38,7 @@
The mimetype is used for serialized objects, and tells the The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not ResXResourceReader how to depersist the object. This is currently not
EXTensible. For a given mimetype the value must be set accordingly: extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can that the ResXResourceWriter will generate, however the reader can
@ -199,4 +199,7 @@
<data name="SimpleGLSL" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="SimpleGLSL" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\OpenGL\GLSL\SimpleGLSL.cs;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value> <value>..\OpenGL\GLSL\SimpleGLSL.cs;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
</data> </data>
<data name="App" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\App.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -33,12 +33,14 @@ namespace Examples
{ {
ExampleAttribute info = GetExampleAttribute(window.GetType()); ExampleAttribute info = GetExampleAttribute(window.GetType());
window.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title); window.Title = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
window.Icon = OpenTK.Examples.Properties.Resources.App;
} }
public static void SetWindowTitle(System.Windows.Forms.Form window) public static void SetWindowTitle(System.Windows.Forms.Form window)
{ {
ExampleAttribute info = GetExampleAttribute(window.GetType()); ExampleAttribute info = GetExampleAttribute(window.GetType());
window.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title); window.Text = String.Format("OpenTK | {0} {1}: {2}", info.Category, info.Difficulty, info.Title);
window.Icon = OpenTK.Examples.Properties.Resources.App;
} }
static ExampleAttribute GetExampleAttribute(Type type) static ExampleAttribute GetExampleAttribute(Type type)