public void Init() { ContainerDataSet = new ContainerDataSet(); base.Init(ContainerDataSet); DB.InitConnection(Omega.Properties.Settings.Default.dataConnectionString/* "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Projects\\c#\\Omega\\data.mdb"*/); InitColumnAsPrimaryKey(ContainerDataSet.Container.ContainerIdColumn); InitColumnAsAppCalculated(ContainerDataSet.Container.eToMeasureColumn); _ContainerTypeBL = new ContainerTypeBL(); _ContainerTypeBL.Init(); _ContainerTypeBL.FillList(); }
void Container_ContainerRowChanged(object sender, ContainerDataSet.ContainerRowChangeEvent e) { bool hasChanges = _ContainerBL.ContainerDataSet.HasChanges(); if (hasChanges) { try { //_ContainerBL.Save(); } catch (Exception ex) { throw new Exception(ex.Message); } } }
public void Init() { ContainerDataSet = new ContainerDataSet(); base.Init(ContainerDataSet); DB.InitConnection(Omega.Properties.Settings.Default.dataConnectionString/* "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\Projects\\c#\\Omega\\data.mdb"*/); InitColumnAsPrimaryKey(ContainerDataSet.ContainerType.ContainerTypeIdColumn); }