コード例 #1
0
        public GameNetClientModel()
        {
            CurrentMove = null;
            Winner = null;
            _numberMove = 1;
            _observableHistoryMove = new ObservableCollection<HistoryMove>();

            _timerMove = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
            _commonTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
            _timerMove.Tick += TimerMove_Tick;
            _commonTimer.Tick += CommonTimerTick;
            _timeMove = new DateTime();
            _commonTime = new DateTime();
            _timePassed = "00:00:00";
            Db = new CheckersDBDataContext();
        } // GameWithAiModel ctor
コード例 #2
0
 public GameNetLoginModel()
 {
     Db = new CheckersDBDataContext();
     LoginData = new LoginData();
 } // GameNetLoginModel ctor
コード例 #3
0
 public GameNetLobbyModel()
 {
     Db = new CheckersDBDataContext();
     var timerCheckConnect = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
     timerCheckConnect.Tick += TimerCheckConnect_Tick;
 } // GameNetLobbyModel