private void dgvCustomers_RowEnter(object sender, DataGridViewCellEventArgs e) { Staff c = sb.Read(Convert.ToInt32(dgvCustomers.Rows[e.RowIndex].Cells["StaffID"].Value)); txtid.Text = c.StaffID.ToString(); txtisim.Text = c.FirstName; txtsoyisim.Text = c.LastName; txtadres.Text = c.Addres; txttelefon.Text = c.Phone; txtmail.Text = c.Mail; txtcinsiyet.Text = c.Gender; txturl.Text = c.Picture; resim.ImageLocation = c.Picture; txttc.Text = c.Tc; txtkullaniciadi.Text = c.Username; txtsifre.Text = c.UserPassword; }
private void dgvCustomers_RowEnter(object sender, DataGridViewCellEventArgs e) { Staff c = sb.Read(Convert.ToInt32(dgvCustomers.Rows[e.RowIndex].Cells["StaffID"].Value)); txtid.Text = c.StaffID.ToString(); txtisim.Text = c.FirstName; txtsoyisim.Text = c.LastName; txtmail.Text = c.Mail; }