Пример #1
0
        public static void SetHashLine(PlaygroundTypes pt)
        {
            switch (pt)
            {
            case PlaygroundTypes.HighSchool:
                Left  = 8.9;
                Right = -8.9;
                break;

            case PlaygroundTypes.NCAA:
                Left  = 6.67;
                Right = -6.67;
                break;

            case PlaygroundTypes.NFL:
                Left  = 3.1;
                Right = -3.1;
                break;

            case PlaygroundTypes.CFL:
                Left  = 8.5;
                Right = -8.5;
                break;
            }
        }
Пример #2
0
 public void SetPlayground(PlaygroundTypes pt)
 {
     foreach (Playground playground in Playgrounds)
     {
         if (playground.PlaygroundType == pt)
         {
             playground.Use = true;
         }
         else
         {
             playground.Use = false;
         }
     }
 }
Пример #3
0
        public Playground(PlaygroundTypes pt)
        {
            playgroundType = pt;

            playgroundName = pt.ToString();
        }