Esempio n. 1
0
 public void ClearLaboratory()
 {
     if (counter == 0)
     {
         ExccessLaboratoryEmpty err = new ExccessLaboratoryEmpty("ERROR!!!\n Laboratory is empty");
         throw err;
     }
     else
     {
         counter = 0;
         data.Clear();
         Console.WriteLine("Empty!");
     }
 }
Esempio n. 2
0
 public void Output()
 {
     if (counter == 0)
     {
         ExccessLaboratoryEmpty err = new ExccessLaboratoryEmpty("ERROR!!!\n Laboratory is empty");
         throw err;
     }
     else
     {
         foreach (object i in data)
         {
             Console.WriteLine($"Object {i}");
         }
     }
 }