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