protected override bool OnEdit(Entity item)
        {
            var selectedItem = (Person)item;

            using (var frm = new frmContacts_Add())
            {
                frm.ItemData = selectedItem;
                frm.Owner    = this;

                if (frm.ShowDialog() != DialogResult.OK)
                {
                    return(false);
                }
            }

            App.LogAction("Contacts", "Updated Contact: " + selectedItem.Name.Fullname);

            return(true);
        }
        protected override Entity OnAdd()
        {
            var newItem = new Person();

            using (var frm = new frmContacts_Add())
            {
                frm.ItemData = newItem;
                frm.Owner    = this;

                if (frm.ShowDialog() != DialogResult.OK)
                {
                    return(null);
                }
            }

            ItemDataCollection.Add(newItem);

            App.LogAction("Contacts", "Created Contact: " + newItem.Name.Fullname);

            return(newItem);
        }