/// <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 Philly(Object sender, RoutedEventArgs e) { var pp = new PhillyPoacherUC(b, ord, co, sb); pp.DataContext = new PhillyPoacher(); b.Child = pp; ord.order.Add((IOrderItem)pp.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 Philly(Object sender, RoutedEventArgs e) { var pp = new PhillyPoacherUC(b, o, co, sb); pp.DataContext = new PhillyPoacher(); b.Child = pp; pp.InitCombo(com); com.Entree = (Entree)(pp.DataContext); }