private void button3_Click(object sender, EventArgs e)
        {
            Reci d7 = new Reci("REG", "");

            d7.Show();
            this.Hide();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Reci d5 = new Reci(typee, "");

            d5.Show();
            this.Hide();
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            SqlConnection  com   = new SqlConnection(@"Data Source=FATMA-TOTA\SQLEXPRESS;Initial Catalog=project;Integrated Security=True");
            string         Quary = "Select * From recipient Where mail = '" + textBox1.Text.Trim() + "' and password = '******'";
            SqlDataAdapter sda   = new SqlDataAdapter(Quary, com);
            DataTable      tb    = new DataTable();

            sda.Fill(tb);
            if (tb.Rows.Count == 1)
            {
                Reci f6 = new Reci("LOGIN", textBox1.Text);
                f6.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Enter your right data OR registe ");
            }
        }