void RaiseDrinkEvent(Drink side, int index) { OrderClickEventArgs newEventArgs = new OrderClickEventArgs(OrderList.DrinkEvent, side, index); RaiseEvent(newEventArgs); }
private void OrderScreen_DrinkClick(object sender, OrderClickEventArgs e) { DrinkSelection drinkPage = new DrinkSelection(e.SelectedItem as Drink, true, e.Index); OrderWindow.Navigate(drinkPage); }
void RaiseSideEvent(Side side, int index) { OrderClickEventArgs newEventArgs = new OrderClickEventArgs(OrderList.SideEvent, side, index); RaiseEvent(newEventArgs); }
private void OrderScreen_SideClick(object sender, OrderClickEventArgs e) { SideSelection sidePage = new SideSelection(e.SelectedItem as Side, true, e.Index); OrderWindow.Navigate(sidePage); }