private void button2_Click(object sender, EventArgs e) { //Data must be formatted in the same manner as it is //in the key generator. AUXMethods tAux = new AUXMethods(); String data = tAux.CodifyData(txtFName.Text, txtLName.Text, txtPhone.Text, txtEmail.Text); CWActivationLibrary.CWActivationKeyGenerator temp = new CWActivationKeyGenerator(); txtKey.Text = temp.GenerateActivationKey(data); }
static void Main(string[] args) { CWActivationLibrary.CWActivationKeyGenerator tKeyGen = new CWActivationKeyGenerator(); Console.Write(tKeyGen.GenerateActivationKey(args[0])); }