예제 #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            MyApp.init();
            Bango.App.RegisterType.Register();
        }
예제 #2
0
 static void Main(string[] args)
 {
     using (MyApp myApp = new MyApp())
     {
         /// I got tired of looking at the tiny terminal.png font, so I'm going to start
         /// using something a little easier on the eyes.  Of course, we need to make sure that
         /// "courier12x12_aa_tc.png" is in our binary folder or the application will fail on start.
         myApp.Start(new ApplicationInfo()
         {
             Title      = "Test",
             ScreenSize = new Size(40, 40),
             Font       = "courier12x12_aa_tc.png",
             FontFlags  = libtcod.TCODFontFlags.LayoutTCOD,
         });
     }
 }
예제 #3
0
파일: Program.cs 프로젝트: AIBrain/ochregui
        static void Main(string[] args)
        {
            using (MyApp myApp = new MyApp())
            {
                /// I got tired of looking at the tiny terminal.png font, so I'm going to start
                /// using something a little easier on the eyes.  Of course, we need to make sure that
                /// "courier12x12_aa_tc.png" is in our binary folder or the application will fail on start.
                myApp.Start(new ApplicationInfo()
                {
                    Title = "Test",
                    ScreenSize = new Size(40, 40),
                    Font = "courier12x12_aa_tc.png",
                    FontFlags = libtcod.TCODFontFlags.LayoutTCOD,

                });
            }
        }