Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            String query = "select * from Admin ;";
            DatabaseManager dbManager = DatabaseManager.dataBaseManager();
            dbManager.BookConn = new OleDbConnection(dbManager.getConnParam());
            OleDbDataAdapter dAdapter = new OleDbDataAdapter(query, dbManager.BookConn);
            OleDbCommandBuilder cBuilder = new OleDbCommandBuilder(dAdapter);
            DataTable dataTable = new DataTable();
            DataSet ds = new DataSet();
            dAdapter.Fill(dataTable);

            DataRow[] dra = dataTable.Select("");
            foreach (DataRow dr in dra)
            {
                if (textBox1.Text.Equals(dr["Sifre"] + ""))
                {
                    AdminEkrani f22 = new AdminEkrani();
                    this.Visible = false;
                    f22.Show();
                }
                else
                {
                    MessageBox.Show("ADMIN SIFRESI HATALI");
                }
            }
        }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     AdminEkrani f77 = new AdminEkrani();
     f77 = new AdminEkrani();
     this.Visible = false;
     f77.Show();
 }
Exemple #3
0
 void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     AdminEkrani f22 = new AdminEkrani();
     this.Visible = false;
     f22.Show();
 }
Exemple #4
0
 private void button4_Click_1(object sender, EventArgs e)
 {
     AdminEkrani f22 = new AdminEkrani();
     this.Visible = false;
     f22.Show();
 }