private void buttonOrders_Click(object sender, RoutedEventArgs e) { var wnd = new OrdersWindow(); wnd.Owner = this; wnd.Show(); }