示例#1
0
        private void CalisanGuncelle_FormClosed(object sender, FormClosedEventArgs e)
        {
            baglanti.Open();
            Calisanlar     calis          = new Calisanlar();
            string         calisanlariCek = "select * from tblCalisan";
            DataTable      dt             = new DataTable();
            SqlDataAdapter da             = new SqlDataAdapter(calisanlariCek, baglanti);

            da.Fill(dt);
            calis.dataGridView1.DataSource = dt;
            calis.Show();
            baglanti.Close();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Calisanlar c = new Calisanlar();

            if (ytk.yetkiAnahtar.ToString() == "OKUYUCU")
            {
                c.button1.Enabled = false;
            }
            else if (ytk.yetkiAnahtar.ToString() == "YAZICI")
            {
                c.button1.Enabled = false;
            }
            c.Show();
        }