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

            d7.Show();
            this.Hide();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            doonoor d6 = new doonoor(typee, "");

            d6.Show();
            this.Hide();
        }
        private void button1_Click_1(object sender, EventArgs e)
        {
            SqlConnection  com   = new SqlConnection(@"Data Source=FATMA-TOTA\SQLEXPRESS;Initial Catalog=project;Integrated Security=True");
            string         Quary = "Select * From Donor_inf 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)
            {
                doonoor f5 = new doonoor("LOGIN", textBox1.Text);
                this.Hide();
                f5.Show();
            }
            else
            {
                MessageBox.Show("Error");
            }
        }