protected override void UpdateImpl() { if (savedGrid.Width != grid.Width || savedGrid.Height != grid.Height || savedGrid.OffsetX != grid.OffsetX || savedGrid.OffsetY != grid.OffsetY || savedGrid.GridColor != grid.GridColor) { savedGrid.CopyFrom(grid); UpdateResource(); } }
public GridComponent(PPDDevice device, PPDFramework.Resource.ResourceManager resourceManager, SquareGrid grid) : base(device) { this.grid = grid; this.resourceManager = resourceManager; savedGrid = new SquareGrid(); savedGrid.CopyFrom(grid); UpdateResource(); }