private void ViewCustomerOrders_Click(object sender, RoutedEventArgs e) { ViewCustomerOrders customerOrders = new ViewCustomerOrders(); customerOrders.ParentWindow = this; this.Hide(); customerOrders.Show(); }