Exemplo n.º 1
0
        private void AddRaffle()
        {
            var raffle = new Raffle {
                Name     = "<Enter Name, and Select Items and Participants>",
                Location = new ContactDetails()
                {
                    Address1 = "<Enter Location and Contact Details>"
                },
                RaffleParticipants = new ObservableCollection <RaffleParticipant>(),
                RaffleItems        = new ObservableCollection <RaffleItem>()
            };

            uow.Raffles.Add(raffle);
            SelectedRaffle = new RaffleModel(raffle);
            Raffles.Add(SelectedRaffle);
            ClearSelectedItems();
            ClearSelectedParticipants();
        }
Exemplo n.º 2
0
 private void DeleteRaffle()
 {
     uow.Raffles.Remove(SelectedRaffle.RaffleId);
     Raffles.Remove(SelectedRaffle);
 }