Ejemplo n.º 1
0
        private void switchBoutonSimu_ValueChanged(object sender, bool value)
        {
            Robots.EnableSimulation(value);
            panelGrosRobot.Init();

            if (value)
            {
                AllDevices.InitSimu();
            }
            else
            {
                AllDevices.Init();
            }

            AllDevices.SetRobotPosition(Robots.MainRobot.Position);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Execution.DesignMode  = false;
            Execution.LaunchStart = DateTime.Now;

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

            SplashScreen.ShowSplash(Properties.Resources.Splash1, new Rectangle(495, 115, 275, 80));

            CheckAlreadyLaunched();
            DebugChecks();
            Update();
            CheckIP();

            SplashScreen.SetMessage("Initialisation\nConnexions...", Color.Black);
            SplashScreen.SetImage(Properties.Resources.Splash1);
            ThreadManager.Init();
            Connections.Init();

            SplashScreen.SetMessage("Initialisation\nConfig...", Color.Black);
            SplashScreen.SetImage(Properties.Resources.Splash2);
            Config.Load();

            SplashScreen.SetMessage("Initialisation\nDevices...", Color.Black);
            SplashScreen.SetImage(Properties.Resources.Splash3);
            AllDevices.Init();
            Actionneur.Init();
            SuiviBalise.Init();

            SplashScreen.SetMessage("Initialisation\nRobot...", Color.Black);
            Robots.Init();
            Recalibration.Init();

            SplashScreen.SetMessage("Initialisation\nPlateau...", Color.Black);
            Dessinateur.Init();
            GameBoard.Init();

            SplashScreen.SetMessage("Initialisation\nLogs...", Color.Black);
            SplashScreen.SetImage(Properties.Resources.Splash4);
            Logs.Logs.Init();

            SplashScreen.SetMessage("Initialisation\nInterface...", Color.Black);
            SplashScreen.SetImage(Properties.Resources.Splash5);

            Application.Run(new FenGoBot(args));
        }