示例#1
0
        public static string GetDbType()
        {
            DataBaseType dbType = SqlDal_MasterDB.GetSelectedDB();

            if (dbType == DataBaseType.Principal)
            {
                return(PRINCIPAL);
            }
            else
            {
                return(TEST);
            }
        }
 public static int GetAdmittedFightersNumber(int totalPartecipantsNumber)
 {
     if (totalPartecipantsNumber >= SqlDal_MasterDB.GetQualificationCap(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_16)))
     {
         return(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_16));
     }
     else if (totalPartecipantsNumber >= SqlDal_MasterDB.GetQualificationCap(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_8)))
     {
         return(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_8));
     }
     else if (totalPartecipantsNumber >= SqlDal_MasterDB.GetQualificationCap(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_4)))
     {
         return(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_4));
     }
     else
     {
         return(PhasesManager.GetQualificationCapFromPhase(PhasesType.SemiFinals));
     }
 }
 public static int GetMinFightersFor4th()
 {
     return(SqlDal_MasterDB.GetQualificationCap(PhasesManager.GetQualificationCapFromPhase(PhasesType.Finals_4)));
 }