Exemplo n.º 1
0
 public void RemoveTempNumber(int Number)
 {
     if (TempNumbers.Any(a => a.Number == Number))
     {
         Controls.Remove(TempNumbers.Where(a => a.Number == Number).First().Control);
         TempNumbers.Remove(TempNumbers.Where(a => a.Number == Number).First());
     }
 }
Exemplo n.º 2
0
 public void RemoveTempNumber(int[] Numbers)
 {
     foreach (int num in Numbers)
     {
         if (TempNumbers.Any(a => a.Number == num))
         {
             Controls.Remove(TempNumbers.Where(a => a.Number == num).First().Control);
             TempNumbers.Remove(TempNumbers.Where(a => a.Number == num).First());
         }
     }
 }