public void LastLoadedOrderPaidAndSent() { OrderDB db = new OrderDB(); Order2 lastOrder = SimpleRandomLoader.GetLastLoadedOrder(); Order2 paidWebOrder = db.GetNextPaidOrder(); paidWebOrder.OrderSent = true; paidWebOrder.Address = lastOrder.Address; paidWebOrder.Password = lastOrder.Password; db.SaveOrder(paidWebOrder); db.DeleteOrder(lastOrder.OrderNumber); waitingPaidOrder = db.GetNextPaidOrder(); }
private void UpdateNextUnsentPaidOrder() { OrderDB db = new OrderDB(); waitingPaidOrder = db.GetNextPaidOrder(); }