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

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

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

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

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

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

            ItemDataCollection.Add(newItem);
            return(newItem);
        }