private void Ok_Click(object sender, RoutedEventArgs e) { this.Tag = "Ok"; this.DialogResult = true; this.Close(); }