public void ResetState(ShoppingCommand sell, ShoppingCommand buy) { sell = sellItems; buy = buyItems; }
public Memento(ShoppingCommand sell, ShoppingCommand buy) { sellItems = sell.Clone() as ShoppingCommand; buyItems = buy.Clone() as ShoppingCommand; }