/// <summary> /// Click event changing the screen to the user control that was cliked on /// </summary> /// <param name="sender">needed for click event</param> /// <param name="e">needed for click event</param> void Fries(Object sender, RoutedEventArgs e) { var dbw = new DragonBornWaffleFriesUC(b, ord, co, sb); dbw.DataContext = new DragonbornWaffleFries(); b.Child = dbw; ord.order.Add((IOrderItem)dbw.DataContext); }
/// <summary> /// Click event changing the screen to the user control that was cliked on /// </summary> /// <param name="sender">needed for click event</param> /// <param name="e">needed for click event</param> void Fries(Object sender, RoutedEventArgs e) { var dbw = new DragonBornWaffleFriesUC(b, o, co, sb); dbw.DataContext = new DragonbornWaffleFries(); b.Child = dbw; dbw.InitCombo(com); com.Side = (Side)(dbw.DataContext); }