コード例 #1
0
        static void Main()
        {
            InfoLog.Disable();
            InfoLog.Instance.InitializeLogFile(LogFiles.ProcessMsgLog);
            InfoLog.Instance.InitializeLogFile(LogFiles.IncomingMsgLog);
            InfoLog.Instance.InitializeLogFile(LogFiles.BuildManagerLog);
            InfoLog.Instance.InitializeLogFile(LogFiles.AudioEngineLog);
            InfoLog.Instance.InitializeLogFile(LogFiles.Astar);
            InfoLog.Instance.InitializeLogFile(LogFiles.FullSimulationLog);

            InfoLog.Instance.AddRedirection(EPrefix.BMan, LogFiles.BuildManagerLog);
            InfoLog.Instance.AddRedirection(EPrefix.AStar, LogFiles.Astar);
            InfoLog.Instance.AddRedirection(EPrefix.AudioEngine, LogFiles.AudioEngineLog);
            InfoLog.WriteStart();

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

            MiniForm miniForm = new MiniForm();

            miniForm.Hide();

            UIManager uiManager = new UIManager(miniForm);

            uiManager.Start();

            Application.Run(miniForm);

            Connection.Instance.CloseConnection();

            InfoLog.WriteEnd();
            InfoLog.Close();
        }
コード例 #2
0
        static void Main()
        {
            InfoLog.Disable();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();
            ConsoleForm         consoleForm = new ConsoleForm();
            OnWriteLineDelegate owd         = new OnWriteLineDelegate(consoleForm.AppendText);

            InfoLog.WriteStart();
            consoleForm.StartServer();

            Application.Run();

            InfoLog.WriteEnd();
            InfoLog.Close();
        }