示例#1
0
        private void button_düzenle_Click(object sender, EventArgs e)
        {
            DataGridView dtg   = datagridview_Personel;
            Add_Personel adPer = new Add_Personel()
            {
                isUpdate              = true,
                _SelectedTc           = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["TC Kimlik Numarası"].Value.ToString(),
                _SelectedIsim         = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Adı"].Value.ToString(),
                _SelectedSoyisim      = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Soyadı"].Value.ToString(),
                _SelectedKullaniciAdi = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Kullanıcı Adı"].Value.ToString(),
                _SelectedSifre        = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["sifre"].Value.ToString(),
                _SelectedEposta       = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["E_Posta"].Value.ToString(),
                _SelectedAdres        = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Adres"].Value.ToString(),
                _SelectedSSKNo        = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["SSK Numarası"].Value.ToString(),
                _SelectedSSKBas       = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["SSK Başlangıç Tarihi"].Value.ToString(),
                _SelectediseGiris     = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["İşe Giriş Tarihi"].Value.ToString(),
                _SelectedCinsiyet     = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Cinsiyet"].Value.ToString(),
                _SelectedDepartman    = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Departman"].Value.ToString(),
                _SelectedYetki        = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Yetki"].Value.ToString(),
                _SelectedMaas         = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Maaş"].Value.ToString(),
                _SelectedDurumu       = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Durumu"].Value.ToString(),
                _SelectedTelefon      = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Telefon Numarası"].Value.ToString(),
                _SelectedId           = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["personel_no"].Value.ToString(),
                _SelectedGuvenlik     = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Güvenlik Sorusu"].Value.ToString(),
                _SelectedGuvenlikcvp  = dtg.Rows[dtg.CurrentCell.RowIndex].Cells["Güvenlik Sorusu Cevabı"].Value.ToString(),
            };

            adPer.ShowDialog();
        }
        private void button_ekle_Click(object sender, EventArgs e)
        {
            Add_Personel adPer = new Add_Personel()
            {
                isUpdate = false
            };

            adPer.ShowDialog();
        }