private void ex_Click(object sender, RoutedEventArgs e) { enter enter = new enter(); Close(); enter.ShowDialog(); }