Кнопка WPF, чтобы вернуться в последнее окно
private void btn_Cancel_Click(object sender, RoutedEventArgs e)
{
DialogResult = false;
}
Upset Unicorn
private void btn_Cancel_Click(object sender, RoutedEventArgs e)
{
DialogResult = false;
}
private void Window1_Click(object sender, RoutedEventArgs e)
{
Hide();
new Window1().ShowDialog();
ShowDialog();
}