Ejemplo n.º 1
0
        private void LookupDialogOnPersonSelected(PersonEntity selectedEntity)
        {
            txtSearch.Text = selectedEntity.FirstName + " " + selectedEntity.Surname;
            lblSelected.Text = selectedEntity.FirstName + " " + selectedEntity.Surname;

            if (PersonSelected != null) PersonSelected  (selectedEntity);
        }
Ejemplo n.º 2
0
 private void ActivateSelection()
 {
     int projectID = Convert.ToInt32(lsData.SelectedItems[0].Name);
     PersonEntity c = new PersonEntity(projectID);
     if (PersonSelected != null)
     {
         PersonSelected(c);
     }
     this.Close();
 }
Ejemplo n.º 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            PersonEntity entity = new PersonEntity();

            entity.FirstName = txtFirstName.Text;
            entity.SecondName = txtSecondName.Text;
            entity.Surname = txtSurname.Text;
            entity.IDNumber = txtIDNumber.Text;
            entity.GenderID = cmbGender.SelectedIndex;
            entity.LanguageID = cmbLanguage.SelectedIndex;
            // entity.NationalityID = cmbNationality.SelectedIndex;// Changed Entitys nationality id to int
            entity.MaritalStatusID = cmbMaritialStatus.SelectedIndex;
            entity.CellNumber = txtCellNumber.Text;
            entity.TelNumber = txtTelNumber.Text;
            entity.EmailAddress = txtEmail.Text;
            entity.EmployerCompany = txtEmployerCompanyName.Text;
            entity.PhysicalAddressStreetName = txtPhysicalStreetName.Text;
            entity.PhysicalAddressStreetNumber = txtPhysicalStreetNumber.Text;
        }
Ejemplo n.º 4
0
 public void SetPerson(PersonEntity person)
 {
     CurrentSelectedPerson = person;
     txtSearch.Text = person.FirstName + " " + person.Surname;
     lblSelected.Text = person.FirstName + " " + person.Surname;
 }