Exemple #1
0
 public static Labs GetLabs()
 {
     if (theLab == null)
     {
         theLab = new Labs();
     }
     return(theLab);
 }
Exemple #2
0
        static void Main(string[] args)
        {
            Labs          aLab = Labs.GetLabs();;
            List <String> list = aLab.GetLabsList();

            list.Add("New Lab");
            for (int i = 0; i < list.Count(); i++)
            {
                Console.WriteLine(list.ElementAt(i));
            }

            Console.ReadLine();
        }