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