public void RemoveHistoryChange(Consumed c) { Changes.Remove(Changes.Find(x=> x.ID == c.ItemChangeID)); stockChanged = true; RecalculateStockAsync(); if (ItemRemoved != null) ItemRemoved(this, new ChangeEventArgs()); }
public void RemoveHistoryChange(Consumed c) { History.Remove(c); }
private void RemoveFromHistory(Consumed c) { // Remove Consumed from List ((Consumer)Model).RemoveHistoryChange(c); RaisePropertyChanged("History"); App.SaveItemListAsync(); App.SavePersonsListAsync(); Log.WriteWarning(App.CurrentVendor.Name + " removed one Item from " + Model.Name); }