示例#1
0
 public void UsunOceny(string nazwaPrzedmiotu_)
 {
     for (int i = 0; i < oceny.Count;)
     {
         Ocena o = oceny[i];
         if (o.NazwaPrzedmiotu == nazwaPrzedmiotu_)
         {
             oceny.RemoveAt(i);
         }
         else
         {
             ++i;
         }
     }
 }
示例#2
0
 public void UsunOcene(string nazwaPrzedmiotu_, string data_, double wartosc_)
 {
     for (int i = 0; i < oceny.Count;)
     {
         Ocena o = oceny[i];
         if (o.NazwaPrzedmiotu == nazwaPrzedmiotu_ && o.Data == data_ && o.Wartosc == wartosc_)
         {
             oceny.RemoveAt(i);
         }
         else
         {
             ++i;
         }
     }
 }