コード例 #1
0
ファイル: Program.cs プロジェクト: philippdolder/appccelerate
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            EventBroker eventBroker = new EventBroker();

            // add log extension to the event broker to get log messages
            eventBroker.AddExtension(new DebugLogger());

            Pong oponent = new Pong();
            Ping form    = new Ping();

            eventBroker.Register(oponent);
            eventBroker.Register(form);

            Application.Run(form);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: WenningQiu/appccelerate
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            EventBroker eventBroker = new EventBroker();

            // add log extension to the event broker to get log messages
            eventBroker.AddExtension(new DebugLogger());

            Pong oponent = new Pong();
            Ping form = new Ping();

            eventBroker.Register(oponent);
            eventBroker.Register(form);

            Application.Run(form);
        }
コード例 #3
0
        public static void Main()
        {
            // configure basic logging (all levels enabled, messages are written to the console)
            log4net.Config.BasicConfigurator.Configure();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            EventBroker eventBroker = new EventBroker();

            // add log extension to the event broker to get log messages
            eventBroker.AddExtension(new Extensions.LogExtension());

            Pong oponent = new Pong();
            Ping form    = new Ping();

            eventBroker.Register(oponent);
            eventBroker.Register(form);

            Application.Run(form);
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: tiger2soft/bbv.Common
        public static void Main()
        {
            // configure basic logging (all levels enabled, messages are written to the console)
            log4net.Config.BasicConfigurator.Configure();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            EventBroker eventBroker = new EventBroker();

            // add log extension to the event broker to get log messages
            eventBroker.AddExtension(new Extensions.LogExtension());

            Pong oponent = new Pong();
            Ping form = new Ping();

            eventBroker.Register(oponent);
            eventBroker.Register(form);

            Application.Run(form);
        }