private void ClickBack(object sender, RoutedEventArgs e) { OrderDetailWindow w = new OrderDetailWindow(_orderClass, _user, _allOrdersWindow); this.Close(); w.Show(); }
private void OrderDetail(object sender, RoutedEventArgs e) { Button button = (Button)sender; object orderstring = button.Tag; var o = _singleton.orderList.FirstOrDefault(s => s._name.Equals(orderstring)); //Console.WriteLine(o.ToString()); OrderDetailWindow np = new OrderDetailWindow(o, _user, this); np.Show(); }