Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RenderControl" /> class.
        /// </summary>
        public RenderControl()
        {
            SetStyle(ControlStyles.ResizeRedraw, true);

            renderColors = ColorManager.Default();

            this.BackColor = renderColors.Background;

            zoom    = new Zoom(true);
            context = new BufferedGraphicsContext();
            data    = new RenderData();

            timer          = new Timer();
            timer.Interval = 3000;
            timer.Tick    += (sender, e) =>
            {
                timer.Stop();
                coordinate = String.Empty;
                this.Invalidate();
            };
        }