Example #1
0
        public GameCoreEvent(string name, DateTime date)
        {
            this.Name  = name;
            this.Date  = date;
            this.Day   = date.Day;
            this.Month = date.Month;
            this.Year  = date.Year;

            //Generates a unique ID for the class;
            _id = UniqueID.Generate();
        }
Example #2
0
        public GameCoreEvent(string name, DateTime date, string homeTeamID, string awayTeamID)
        {
            this._name  = name;
            this.Date   = date;
            this._day   = date.Day;
            this._month = date.Month;
            this._year  = date.Year;

            //set up the teams playing against each other.
            _homeTeamID = homeTeamID;
            _awayTeamID = awayTeamID;

            //Generates a unique ID for the class;
            _id = UniqueID.Generate();
        }
Example #3
0
 ///<summary>Constructor for Team where team ID is automatically Generated using an automatic ID Generator</summary>
 public Team(string cityName, string nickName)
 {
     CityName = cityName;
     NickName = nickName;
     _id      = UniqueID.Generate();
 }