Пример #1
0
 private void DefineRecipients()
 {
     AdressedBoxs.Clear();
     if (SenderBoxSelected != null)
     {
         foreach (Cashbox box in SenderBoxs)
         {
             if (box.ID != SenderBoxSelected.ID)
             {
                 AdressedBoxs.Add(box);
             }
         }
     }
 }
Пример #2
0
        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);
                }
            }
        }