public void AddNewRecord() { MainRow = ContainerDataSet.ContainerType.NewContainerTypeRow(); MainRow.Height = DEFAULT_HEIGHT; MainRow.ContainerKind = (int)ContainerKindEnum.Barrel; MainRow.Length = DEFAULT_LENGHT; MainRow.Capacity = DEFAULT_CAPACITY; MainRow.ContainerTypeName = string.Empty; MainRow.Width = 0; ContainerDataSet.ContainerType.AddContainerTypeRow(MainRow); }
public void FillRecord(long containerTypeId) { DB.Fill( ContainerDataSet.ContainerType, new MyLib.DL.SQLSelect( ContainerDataSet.ContainerType.TableName, string.Format("WHERE {0} = {1}", ContainerDataSet.ContainerType.ContainerTypeIdColumn.ColumnName, containerTypeId))); MainRow = MainDataTable.Rows[0] as ContainerDataSet.ContainerTypeRow; }