public Round(int id, IRoundDAL roundDAL, IWheel wheel) { this.Id = id; this._roundDAL = roundDAL; this._wheel = wheel; _roundTimer = new Timer(1000); _roundTimer.Elapsed += RoundTimer_Elapsed; this.Pocket = ExtractPocket(_roundDAL.GetPocket(this.Id)); }
public RoomContainer( IRoomContainerDAL containerdAL, IRoomDAL roomDAL, IRoundDAL roundDAL, IUserDAL userDAL, IBetDAL betDAL, IWheel wheel) { this._containerDAL = containerdAL; this._roomDAL = roomDAL; this._roundDAL = roundDAL; this._userDAL = userDAL; this._betDAL = betDAL; this._wheel = wheel; this.Rooms = this.GetAllRooms(); }
public Room(int id, IRoomDAL roomDAL, IRoundDAL roundDAL, IUserDAL userDAL, IBetDAL _betDAL, IWheel wheel) { this.Id = id; this._roomDAL = roomDAL; this._roundDAL = roundDAL; this._betDAL = _betDAL; this._userDAL = userDAL; this._wheel = wheel; this.Rounds = this.GetAllRounds(); this.Players = this.GetAllUsers(); }