示例#1
0
 public void AdaugaFusta(TipFusta tip, int numar)
 {
     Contract.Requires(tip != null, "tip fusta");
     if (capacitateDepozit > 0)
     {
         var fusta = new Fusta(tip, numar);
         Fuste.AdaugaFusta(fusta);
         capacitateDepozit--;
     }
     else
     {
         Console.WriteLine("Nu mai sunt locuri in depozit");
     }
 }
示例#2
0
 internal void AdaugaFusta(Fusta fusta)
 {
     Contract.Requires(fusta != null, "fusta");
     fuste.Add(fusta);
 }