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

            using (var frm = new frmSubject_Add())
            {
                frm.ItemData = selectedItem;
                if (frm.ShowDialog() != DialogResult.OK)
                {
                    return(false);
                }
            }

            App.LogAction("Subject", "Updated Subject : " + selectedItem.SubjectCode);

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

            using (var frm = new frmSubject_Add())
            {
                frm.ItemData = newItem;
                if (frm.ShowDialog() != DialogResult.OK)
                {
                    return(null);
                }
            }

            App.LogAction("Subject", "Created Subject : " + newItem.SubjectCode);


            ItemDataCollection.Add(newItem);

            return(newItem);
        }