private void DefineRecipients() { AdressedBoxs.Clear(); if (SenderBoxSelected != null) { foreach (Cashbox box in SenderBoxs) { if (box.ID != SenderBoxSelected.ID) { AdressedBoxs.Add(box); } } } }
public void SetParameters(User user, List <Cashbox> boxs) { SenderBoxs.Clear(); AdressedBoxs.Clear(); actualUser = user; if (user != null) { foreach (Cashbox box in boxs) { SenderBoxs.Add(box); } } }