Пример #1
0
        /// <summary>
        /// Gets the scoring schemes used by USASwimming
        /// </summary>
        /// <param name="IsUSASwimming"></param>
        /// <param name="ScoringEventType"></param>
        /// <returns></returns>
        private List<ViewScoringScheme> GetScoringSchemes(bool IsUSASwimming, SwimomaticBusinessManager.ScoringEventType ScoringEventType)
        {
            ScoringSchemeCollection scoringSchemes = BizMgr.GetUSASwimmingScoringSchemes(IsUSASwimming, ScoringEventType);
            List<ViewScoringScheme> vsss = new List<ViewScoringScheme>();
            ViewScoringScheme vss = null;
            foreach (ScoringScheme scoringScheme in scoringSchemes)
            {
                vss = new ViewScoringScheme();
                vss.Description = scoringScheme.Description;
                vss.IndividualPoints = scoringScheme.IndividualPoints;
                vss.IsUSASwimming = scoringScheme.IsUSASwimming;
                vss.RelayPoints = scoringScheme.RelayPoints;
                vss.ScoringSchemeID = scoringScheme.ScoringSchemeID;
                vsss.Add(vss);
            }

            return vsss;
        }
Пример #2
0
 //
 private List<ViewScoringScheme> GetScoringSchemes(int SeasonID)
 {
     List<int> ScoringSchemeIDs = new List<int>();
     ScoringSchemeCollection scoringSchemes = BizMgr.GetScoringSchemesBySeasonID(SeasonID);
     List<ViewScoringScheme> vsss = new List<ViewScoringScheme>();
     ViewScoringScheme vss = null;
     foreach (ScoringScheme scoringScheme in scoringSchemes)
     {
         vss = new ViewScoringScheme();
         vss.Description = scoringScheme.Description;
         vss.IndividualPoints = scoringScheme.IndividualPoints;
         vss.IsUSASwimming = scoringScheme.IsUSASwimming;
         vss.RelayPoints = scoringScheme.RelayPoints;
         vss.ScoringEventTypeID = scoringScheme.ScoringEventTypeID;
         vss.SwimMeetTypeID = scoringScheme.SwimMeetTypeID;
         vss.ScoringSchemeID = scoringScheme.ScoringSchemeID;
         vsss.Add(vss);
     }
     return vsss;
 }