Esempio n. 1
0
        private void start_btn_Click(object sender, EventArgs e)
        {
            idd = txtId.Text;
            int flag = 0;

            flag = ClsUsers.login2(txtId.Text);
            if (flag == 1)
            {
                Random random = new Random();
                emot = random.Next(1000, 10000);
                ClsUsers.SendMessege(emot, PhNumber, Email);
                emotform emf = new emotform();
                emf.Show();
                Hide();
            }
            else
            {
                flag = ClsUsers.login1(txtId.Text);
                if (flag == 1)
                {
                    Random random = new Random();
                    emot = random.Next(1000, 10000);
                    ClsUsers.SendMessege(emot, PhNumber, Email);
                    emotform emf = new emotform();
                    emf.Show();
                    Hide();
                }
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Random random = new Random();

            emot = random.Next(1000, 10000);
            ClsUsers.SendMessege(emot, login.PhNumber, login.Email);
            emotform emf = new emotform();

            emf.button_back_login.Visible    = false;
            emf.button_finish.Visible        = true;
            emf.button_back_payment.Visible  = true;
            emf.start_btn_mnahel_cus.Visible = false;
            emf.Show();
            Hide();
        }