public static GridSource CreateNew(string filename, GridSourceHeader header, DataType dataType, object initialValue, bool inRam = true, GridFormat format = GridFormat.UseExtension) { var grid = new Grid(); if (!grid.CreateNew(filename, header.GetInternal(), (GridDataType)dataType, initialValue, inRam, (GridFileType)format)) { grid.Close(); return(null); } return(new GridSource(grid)); }
public void CopyFrom(GridSourceHeader header) { _header.CopyFrom(header.GetInternal()); }