private void changeProductKey_Click(object sender, RoutedEventArgs e)
        {
            ProductKey productKey = new ProductKey();

            productKey.Owner = this;

            if (productKey.ShowDialog() == true)
            {
                if (Activation.IsActivated())
                {
                    DialogResult = true;
                }
            }
        }
Esempio n. 2
0
        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;
            }
        }