void loadPerson()
        {
            if (PersonID != 0) {
                DataLayer db = new DataLayer ();
                Person person = db.getPerson (PersonID);

                txtFirstName.Text = person.FirstName;
                txtSurname.Text = person.LastName;
                dpDoB.SetDate (Shared.DateFunctions.DateTimeToNSDate(person.DoB), true);
                if (person.Gender == "Male")
                    segGender.SelectedSegment = 1;
                else
                    segGender.SelectedSegment = 0;
                txtEMail.Text = person.EMail;
                txtMobile.Text = person.Mobile;
                this.Title = person.FirstName + " " + person.LastName;
            } else {
                this.Title = "Add Person";
            }
        }