예제 #1
0
        public void DemarrerPartie()
        {
            //_maFormPlateau = new FormPlateau(_maConfig);
            //_maFormPlateau.ChargerCases(_monTerrain.GetCases());

            //_maFormConfig.Terrain = _monTerrain;
            //_maFormConfig.Joueurs = _mesJoueurs;

            Dictionary <string, object> mesObjets = new Dictionary <string, object>();

            _maFormConfig                  = new FrmConfiguration();
            _monThreadPlateau              = new Thread(AfficherConfiguration);
            _monThreadPlateau.Name         = "Configuration du jeu morpion";
            _monThreadPlateau.IsBackground = false;

            _monThreadPlateau.Priority = ThreadPriority.Highest;
            _monThreadPlateau.Start();
            //Initialiser();
            //_monThreadTour = new Thread(TourDeJeu);
            //_monThreadTour.Name = "Thread Tour de jeu Morpion";
            //_monThreadTour.Start();
            Thread.CurrentThread.IsBackground = true;
            Thread.CurrentThread.Join();
        }
예제 #2
0
 public void AfficherConfiguration()
 {
     _maFormConfig = new FrmConfiguration();
     _maFormConfig.ShowDialog();
 }