private void ViewOrders_Click(object sender, RoutedEventArgs e) { ViewOrders order = new ViewOrders(); order.ParentWindow = this; this.Hide(); order.Show(); updateData = true; }