예제 #1
0
        public bool ShowActivateSerialKey()
        {
            EnterSerialKey form = new EnterSerialKey();

            form.AcceptSerialKey += new EnterSerialKey.StringEventReturnBool(VerificarClave);
            form.sMessage         = "Ingrese el Serial Key de activación.";

            while ((!Licenses.Instance.Activated) && !(form.bCancelPressed))
            {
                form.Open();
            }

            if (form.bCancelPressed)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
예제 #2
0
        private bool ShowEnterSerialKey()
        {
            EnterSerialKey form = new EnterSerialKey();

            form.AcceptSerialKey += new EnterSerialKey.StringEventReturnBool(ValidateSerial);
            form.sMessage         = "Ingrese el Serial Key.";

            while (!ValidateSerial(Licenses.Instance.Serial) && !(form.bCancelPressed))
            {
                form.Open();
            }

            if (form.bCancelPressed)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }