using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Windows.Forms; using System.Xml; using System.Linq; using Datalib.DatabaseSpecific; using Datalib.EntityClasses; using Datalib.FactoryClasses; using Datalib.HelperClasses; using SD.LLBLGen.Pro.LinqSupportClasses; using Datalib.Linq; using Datalib.RelationClasses; using System.Threading; using System.Globalization; using System.Configuration; using SD.LLBLGen.Pro.ORMSupportClasses.Miscellaneous; using SD.LLBLGen.Pro.ORMSupportClasses; namespace PatientMan.Forms { public partial class frmTreatmentList : PatientMan.BasicForms.frmCommon { EntityCollection Treatments = new EntityCollection(); public frmTreatmentList() { InitializeComponent(); } private void btnSave_Click(object sender, EventArgs e) { adapter.SaveEntityCollection(Treatments, true, true); (new frmShowSaveInfo()).Show(); base.SaveRecord(); } public override void LoadData() { adapter.FetchEntityCollection(Treatments, null); grdTests.DataSource = Treatments; base.LoadData(); } } }