All pastes #968459 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-03 01:29 UTC
rendered paste body
using System;

using SdlDotNet.Core;
using SdlDotNet.Graphics;
using SdlDotNet.Input;

namespace SdlDotNetExamples.SmallDemos
{
    public class Window
    {
        [STAThread]
        public static void Main()
        {
            Window app = new Window();
            app.Go();
        }

        public Window()
        {
            Video.SetVideoMode(400, 300);
            Video.WindowCaption = "Fun with ANN";
            Events.MouseMotion += new EventHandler<MouseMotionEventArgs>(Events_MouseMotion);
        }

        private void Events_MouseMotion(object sender, MouseMotionEventArgs e)
        {
        }

        public void Go()
        {
            Events.Quit += new EventHandler<QuitEventArgs>(this.Quit);
            Events.Run();
        }

        private void Quit(object sender, QuitEventArgs e)
        {
            Events.QuitApplication();
        }

        /// <summary>
        /// Lesson Title
        /// </summary>
        public static string Title
        {
            get
            {
                return "ANN Assignment";
            }
        }
    }
}