コード例 #1
0
        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);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            CWActivationLibrary.CWActivationKeyGenerator tKeyGen = new CWActivationKeyGenerator();

            Console.Write(tKeyGen.GenerateActivationKey(args[0]));
        }