示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "mojaloi")
            {
                timer1.Stop();
                label1.Text     = "Authenticated!";
                isAuthenticated = true;
                RemoveFromStartUP.RemoveApplicationFromStartup();
                Application.Exit();
            }


            else
            {
                isAuthenticated = false;
                isExit          = true;
                Application.Exit();
            }
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            RemoveFromStartUP.RemoveApplicationFromStartup();
            StartUp.AddApplicationToStartup();

            timer1.Start();

            label1.Visible        = true;
            label1.Text           = "Submit the code within " + t + " seconds";
            label1.BackColor      = Color.Transparent;
            textBox1.PasswordChar = '*';

            label2.BackColor = Color.Transparent;
            label2.Text      = "contact with [email protected] for code!!";

            label3.BackColor = Color.Transparent;
            label3.Text      = "V 1.0.0.1";
        }