private void btnCancel_Click(object sender, RoutedEventArgs e) { yep = false; AllowClose = true; this.Close(); }