Example #1
0
 private void Edit(Person person)
 {
     EditPersonForm.Edit(person, delegate(Person p)
     {
         new PersonManager().Update(p);
     });
 }
Example #2
0
        private void new_Click(object sender, EventArgs e)
        {
            Person person = EditPersonForm.EditNew(delegate(Person p)
            {
                new PersonManager().Insert(p);
            });

            if (person != null)
            {
                personBinder.List.Add(person);
            }
        }