コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "muxtar" && textBox2.Text == "1234")

            {
                FormMenu f2 = new FormMenu();
                f2.Show();

                this.Hide();
            }
            else
            {
                textBox1.Text = "";
                textBox2.Text = "";

                MessageBox.Show("Неправильный логин или пароль");

                a++;
                if (a == 3)
                {
                    a = 0;
                    timer1.Enabled   = true;
                    button1.Enabled  = false;
                    label4.Visible   = true;
                    button2.Enabled  = false;
                    textBox1.Enabled = false;
                    textBox2.Enabled = false;
                }
            }
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FormMenu f2 = new FormMenu();

            f2.Show();

            this.Hide();
        }