コード例 #1
0
 /// <summary>
 /// Constructeur <see cref="ReplayModel" /> class.
 /// </summary>
 /// <param name="mI">Accès à la fenetre principale</param>
 /// <param name="replayM">Modele du replay</param>
 public ReplayModel(MainInterface mI, Diaballik.Replay.ReplayManager replayM)
 {
     this.mI      = mI;
     this.replayM = replayM;
     AccessStop   = Visibility.Collapsed;
     AccessStart  = Visibility.Visible;
 }
コード例 #2
0
        /// <summary>
        /// <see cref="DiaballikGame.Welcome.MainInterface"/>
        /// </summary>
        public void replayCurrentGame(int id)
        {
            currentGame.saveGame();
            ReplayManager rpM = new Diaballik.Replay.ReplayManager(id);

            rpM.loadAtTheEnd();
            CurrentView = new MainReplayView(this, rpM, ReplayModel.TYPE_REPLAY.REPLAY_FROM_CURRENT_GAME);
            notifyObserState(Utils.Properties.STATE_GAME.REPLAY);
        }