private void btnOkay_Click(object sender, RoutedEventArgs e) { btnApply_Click(sender, e); this.Close(); }