private void loadItems()
 {
     EventItemsHelper client = new EventItemsHelper();
     List<Items> iten = client.GetItemsByEvent(event_.EventID).ToList<Items>();
     if (iten.Count > 0)
     {
         txtItemMsg.Text = "A total of " + iten.Count + " Item(s) have been added";
     }
     else
     {
         txtItemMsg.Text = "No items have been added yet";
     }
 }
 private void clearItemInput()
 {
     txtItemName.Text = "";
     txtItemPrice.Text = "";
     txtItemSatisfaction.Text = "";
     cboItemTypeIL.SelectedIndex = -1;
     EventItemsHelper client = new EventItemsHelper();
     List<Items> ItemList = client.GetItemsByEvent(event_.EventID).ToList<Items>();
     lvItem.SetExistingSource(ItemList);
     client.Close();
 }
        private void ExistingLoad()
        {
            EventItemsHelper client = new EventItemsHelper();
            List<ItemTypes> TypeList = client.GetEventSpecificItemType(event_.EventID).ToList<ItemTypes>();
            List<Items> ItemList = client.GetItemsByEvent(event_.EventID).ToList<Items>();
            client.Close();

            if (TypeList.Count > 0)
                lvItemType.SetExistingSource(TypeList);
            if (ItemList.Count > 0)
                lvItem.SetExistingSource(ItemList);
            rebindcboItemType4Item();
        }
 private void btnDeleteItemType_Click(object sender, RoutedEventArgs e)
 {
     lvItemType.DeleteItemType(user, event_);
     rebindcboItemType4Item();
     EventItemsHelper client = new EventItemsHelper();
     List<Items> ItemList = client.GetItemsByEvent(event_.EventID).ToList<Items>();
     lvItem.SetExistingSource(ItemList);
     client.Close();
 }