示例#1
0
 private void Validate()
 {
     if (GuestList.Count() != GuestNumber.Value)
     {
         throw new DomainException(
                   $"Guest number [{GuestNumber.Value}] does not match with number of guests on list [{GuestList.Count()}].");
     }
 }
 private void RefreshGuestListButton_Click(object sender, RoutedEventArgs e)
 {
     debugGuestView.guestsListView.Items.Clear();
     for (int i = 0; i < Guests.Count(); i++)
     {
         debugGuestView.guestsListView.Items.Add(Guests.Guests[i]);
         debugGuestView.guestsListView.Items.Refresh();
         //guests.Guests[0].Name = "F****r";
     }
     debugGuestView.guestsListView.Items.Refresh();
 }