Пример #1
0
        private void cMS_Guncelle_Click(object sender, EventArgs e)
        {
            DataGridViewRow seciliYetkili = Main_Grid.CurrentRow;
            string          yetkiliTC     = seciliYetkili.Cells["Kimlik NO"].Value.ToString();
            yetkiliGuncelle s             = new yetkiliGuncelle(yetkiliTC, true);

            this.Visible = false;
            s.ShowDialog();
            this.Visible                  = true;
            Main_Grid.DataSource          = db.uyeIslemleri.YetkilileriGetir();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }
Пример #2
0
        private void personelGüncelleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ara = "personeller";
            DataGridViewRow seciliYetkili = Main_Grid.CurrentRow;
            string          yetkiliTC     = seciliYetkili.Cells["Kimlik NO"].Value.ToString();
            yetkiliGuncelle s             = new yetkiliGuncelle(yetkiliTC, false);

            this.Visible = false;
            s.ShowDialog();
            this.Visible               = true;
            Main_Grid.DataSource       = db.uyeIslemleri.seciliSubeninYetkilileriGetir(Convert.ToInt16(subeNo));
            Main_Grid.ContextMenuStrip = contextMenuStripPersoneller;
            Main_Grid.AutoResizeColumns();
            Main_Grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
        }