Ejemplo n.º 1
0
        public Displayer(Panel p, IScreenToCoordinateMapper mapper, ReferenceSystem referenceSystem)
        {
            Panel              = p;
            Panel.SizeChanged += Pb_SizeChanged;

            Mapper = mapper;
            referenceSystem.SetMapper(mapper);
            ReferenceSystem = referenceSystem;
            mapper.SetScreenArea(0, p.Size.Width, 0, p.Size.Height);
            mapper.MapperStateChanged += Mapper_MapperStateChanged;

            Elements = new LayerManager();
            Elements.SetDisplayer(this);

            InitializeDisplayerState();
        }
Ejemplo n.º 2
0
 public void SizeChanged(Size s, IScreenToCoordinateMapper mapper) => mapper.SetScreenArea(0, s.Width, 0, s.Height);