protected override void Recuperar_Registro() { if (cbPerson.EditValue != null) { short idperson = Convert.ToInt16(cbPerson.EditValue); CUser_systemFactory faUser_system = new CUser_systemFactory(); List <CUser_system> lstUserSystem = faUser_system.GetAll().Where(c => c.Idperson == idperson).ToList(); if (lstUserSystem.Exists(c => c.Idperson == idperson)) { oUser_system = faUser_system .GetAll() .Where(c => c.Idperson == idperson).Single(); tbUserName.Text = oUser_system.Cod_user; Flag_new_user = false; } else { Flag_new_user = true; } } }
public void Load_user() { CUser_systemFactory faUser_system = new CUser_systemFactory(); cbUser.Properties.DataSource = faUser_system.GetAll(); cbUser.Properties.DisplayMember = "Cod_user"; cbUser.Properties.ValueMember = "Iduser"; }
public void Load_user() { CUser_systemFactory faUser_system = new CUser_systemFactory(); cbUser.Properties.DataSource = faUser_system.GetAll(); cbUser.Properties.DisplayMember = "Cod_user"; cbUser.Properties.ValueMember = "Iduser"; }
protected override void Recuperar_Registro() { if (cbPerson.EditValue != null) { short idperson = Convert.ToInt16(cbPerson.EditValue); CUser_systemFactory faUser_system = new CUser_systemFactory(); List<CUser_system> lstUserSystem = faUser_system.GetAll().Where(c => c.Idperson == idperson).ToList(); if (lstUserSystem.Exists(c => c.Idperson == idperson)) { oUser_system = faUser_system .GetAll() .Where(c => c.Idperson == idperson).Single(); tbUserName.Text = oUser_system.Cod_user; Flag_new_user = false; } else Flag_new_user = true; } }