Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
 }