public bool NewGame()
        {
            Suspend(true);

            RunningSquare.ResetAllCases();

            Suspend(false);

            File.AppendAllText(@GlobalFile.Log, DateTime.Now.ToString() + "\t *** New Game ***" + Environment.NewLine);

            return(true);
        }
        public void Suspend(bool isWaiting)
        {
            RunningSquare.Suspend(isWaiting);

            if (isWaiting)
            {
                RunningSquare.WaitSuspended();
                File.AppendAllText(@GlobalFile.Log, DateTime.Now.ToString() + "\t Hold ! " + Environment.NewLine);
            }
            else
            {
                RunningSquare.WaitRunning();
                File.AppendAllText(@GlobalFile.Log, DateTime.Now.ToString() + "\t Go !" + Environment.NewLine);
            }
        }
        public void Start(string pathFile)
        {
            try
            {
//                File.Delete(@GlobalFile.Log);

// Replace les pièces au départ
                if (ToolBoard.isBoardConfig())
                {
                    RunningSquare.ResetAllCases();
                    File.AppendAllText(@GlobalFile.Log, DateTime.Now.ToString() + "\t *** New Game ***" + Environment.NewLine);
                }
                else
                {
                    // Cré l'échiquier
                    ToolBoard.CreateBoard(pathFile);
                    RunningSquare.InitRunning();
                }
            }
            catch (Exception)
            {
            }
        }
 public DateTime GetFirstHit(byte noCase)
 {
     return(RunningSquare.GetFirstHit(noCase));
 }
 public void SetFirstHit(byte noCase)
 {
     RunningSquare.SetFirstHit(noCase);
 }
 public bool isFirstLTSecund(byte FirstCase, byte SecundCase)
 {
     return(RunningSquare.isFirstLTSecund(FirstCase, SecundCase));
 }