예제 #1
0
파일: Judge.cs 프로젝트: slam900/WMTASite
 /*
  * Constructor for an existing judge
  * @param loadPreferences should be true if the judge's preferences need to be
  *        loaded from the database and false otherwise
  */
 public Judge(int id, string firstName, string mi, string lastName, string email,
              string phone, int districtId, string contactTypeId,
              List <JudgePreference> preferences, bool loadPreferences)
     : base(id, firstName, mi, lastName, email, phone, districtId, contactTypeId)
 {
     if (!loadPreferences)
     {
         this.preferences = preferences;
     }
     else
     {
         this.preferences = DbInterfaceJudge.GetJudgePreferences(id);
     }
 }
예제 #2
0
파일: Judge.cs 프로젝트: slam900/WMTASite
 /*
  * Constructor for loading the data of an existing judge
  */
 public Judge(int id)
     : base(id, true)
 {
     preferences = DbInterfaceJudge.GetJudgePreferences(id);
 }