Exemplo n.º 1
0
        private void LoginForm_Shown(object sender, EventArgs e)
        {
            AuthResponse response = new AuthResponse();

            if (response.AuthenticateProgram("08lsJevTBmPa=ME2uzO1bpf6B")) //Chnage to match the Auth token you generate to use without error.
            {
                if (response.FreeModeActive)                               //This is only if you wish to have free mode implemented in your application
                {
                    response.ExecuteFreeMode(new MainForm(), this);
                }
            }
            else
            {
                MessageBox.Show("Mismatch in program authentication tokens has been noticed. Program will now close for security purposes.");
                Application.Exit();
            }
        }