private void ValidateKey(string serial)
 {
     if (SerialKey.VerifyKey(serial))
     {
         SerialKey.RegisterSerialKey(serial);
         DialogResult = true;
     }
 }
Esempio n. 2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (SerialKey.VerifyKey((string)value))
            {
                return("1");
            }

            return("0");
        }