protected override Entity OnAdd() { var newItem = new Dll.SchoolYear.Batch(); using (var frm = new frmBatch_Add()) { frm.ItemData = newItem; if (frm.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return(null); } } App.LogAction("School Year.Batch", "Created Batch : " + newItem.BatchName); ItemDataCollection.Add(newItem); return(newItem); }
public OfferedCourseCollection(Batch parent) { _parentBatch = parent; }