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
public GameNetLoginModel() { Db = new CheckersDBDataContext(); LoginData = new LoginData(); } // GameNetLoginModel ctor
public GameNetLobbyModel() { Db = new CheckersDBDataContext(); var timerCheckConnect = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; timerCheckConnect.Tick += TimerCheckConnect_Tick; } // GameNetLobbyModel