private void changeProductKey_Click(object sender, RoutedEventArgs e) { ProductKey productKey = new ProductKey(); productKey.Owner = this; if (productKey.ShowDialog() == true) { if (Activation.IsActivated()) { DialogResult = true; } } }
private void okButton_Click(object sender, RoutedEventArgs e) { ProductKey productKey = new ProductKey(); productKey.Owner = this; if (productKey.ShowDialog() == true || Activation.Key != null) { DialogResult = true; } else { DialogResult = false; } }