public void Init() { _ContainerTypeBL = new ContainerTypeBL(); _ContainerTypeBL.Init(); _ContainerTypeBL.FillList(); gridContainerType.DataSource = _ContainerTypeBL.ContainerDataSet.ContainerType; gridContainerType.InitColumnsAsInvisible( _ContainerTypeBL.ContainerDataSet.ContainerType.ContainerTypeIdColumn, _ContainerTypeBL.ContainerDataSet.ContainerType.ContainerKindColumn ); }
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(); }