public IImageSource GridToImage2(IGridSource grid, RasterColorScheme scheme, GridProxyFormat imageFormat, bool inRam) { var img = _utils.GridToImage2(grid.GetInternal(), scheme.GetInternal(), (tkGridProxyFormat)imageFormat, inRam, null); return(BitmapSource.Wrap(img)); }
public ComponentArtGridHandler(Grid grid, IGridSource <TElement> source, bool dataBind) { this.swither = new Switcher <ElementCounter>(Switcher <ElementCounter> .CurrentValue ?? new ElementCounter()); this._previousFilter = string.Empty; this._previousSort = string.Empty; Assert.ArgumentNotNull(grid, "grid"); Assert.ArgumentNotNull(source, "source"); this._grid = grid; this._source = source; this.InitializeGrid(dataBind); }
/// <summary> /// Fills the grid. /// </summary> /// <param name="source">The source.</param> public void FillGrid(IGridSource <List <string> > source) { if (this.doEncode) { foreach (GridColumn column in this.Grid.Levels[0].Columns) { column.DataField = HttpUtility.UrlEncode(column.DataField); } this.doEncode = false; } ComponentArtGridHandler <List <string> > .Manage(this.Grid, source, false); }
/// <summary> /// Fills the grid. /// </summary> /// <param name="source">The source.</param> public void FillGrid(IGridSource<List<string>> source) { if (this.doEncode) { foreach (GridColumn column in this.Grid.Levels[0].Columns) { column.DataField = HttpUtility.UrlEncode(column.DataField); } this.doEncode = false; } ComponentArtGridHandler<List<string>>.Manage(this.Grid, source, false); }
public static void Manage(Grid grid, IGridSource <TElement> source, bool dataBind) { Assert.ArgumentNotNull(grid, "grid"); Assert.ArgumentNotNull(source, "source"); new ComponentArtGridHandler <TElement>(grid, source, dataBind); }
public static Grid GetInternal(this IGridSource grid) { return(grid.InternalObject as Grid); }
public IFeatureSet ShapeToShapeZ(IFeatureSet shapefile, IGridSource grid) { var sf = _utils.ShapeToShapeZ(shapefile.GetInternal(), grid.GetInternal()); return(sf != null ? new FeatureSet(sf) : null); }
public IGridSource GridToGrid(IGridSource grid, DataType outDataType) { var result = _utils.GridToGrid(grid.GetInternal(), (GridDataType)outDataType); return(result != null ? new GridSource(result) : null); }
public IFeatureSet GridToShapefile(IGridSource grid, IGridSource connectionGrid = null) { var sf = _utils.GridToShapefile(grid.GetInternal(), connectionGrid.GetInternal()); return(sf != null ? new FeatureSet(sf) : null); }
public Image GridToImage(IGridSource grid, RasterColorScheme scheme) { return(_utils.GridToImage(grid.GetInternal(), scheme.GetInternal())); }
public bool GridStatisticsForPolygon(IGridSource grid, GridSourceHeader header, IEnvelope gridExtents, IGeometry polygon, double nodataValue, ref double meanValue, ref double minValue, ref double maxValue) { return(_utils.GridStatisticsForPolygon(grid.GetInternal(), header.GetInternal(), gridExtents.GetInternal(), polygon.GetInternal(), nodataValue, ref meanValue, ref minValue, ref maxValue)); }
public bool GridStatisticsToShapefile(IGridSource grid, IFeatureSet sf, bool selectedOnly, bool overwriteFields) { return(_utils.GridStatisticsToShapefile(grid.GetInternal(), sf.GetInternal(), selectedOnly, overwriteFields)); }
public bool ClipGridWithPolygon(IGridSource inputGrid, IGeometry poly, string resultGridfile, bool keepExtents) { return(_utils.ClipGridWithPolygon2(inputGrid.GetInternal(), poly.GetInternal(), resultGridfile, keepExtents)); }