/// <summary> /// constructor that initializes the cash payment screen. /// </summary> /// <param name="ancestor"></param> public CashPayment(FullMenu ancestor) { InitializeComponent(); this.ancestor = ancestor; OrderList o = (OrderList)this.ancestor.openSpace.DataContext; DataContext = new PaymentViewModel(o.Total); }
public PaymentOptions(FullMenu ancestor) { InitializeComponent(); this.ancestor = ancestor; }