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

            return("0");
        }