Exemplo n.º 1
0
        public ViewerControl()
        {
            this.InitializeComponent();

            this.center = new MapPositionDelegate(new NoMapPosition().NoMapPositionDelegate);
            this.Dock   = DockStyle.Fill;
            base.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
            this.ContextMenu        = new ContextMenu();
            this.ContextMenu.Popup += new EventHandler(this.HandlePopup);
            base.Layout            += new LayoutEventHandler(this.ViewerControl_Layout);
            this.zenButton.Size     = new Size(0, 0);
            this.zenButton.KeyDown += new KeyEventHandler(this.zenButton_KeyDown);
            this.zenButton.KeyUp   += new KeyEventHandler(this.zenButton_KeyUp);
            this.InitAppearance();
        }
Exemplo n.º 2
0
        public ViewerControl()
        {
            this.InitializeComponent();

            this.center = new MapPositionDelegate(new NoMapPosition().NoMapPositionDelegate);
            this.Dock = DockStyle.Fill;
            base.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true);
            this.ContextMenu = new ContextMenu();
            this.ContextMenu.Popup += new EventHandler(this.HandlePopup);
            base.Layout += new LayoutEventHandler(this.ViewerControl_Layout);
            this.zenButton.Size = new Size(0, 0);
            this.zenButton.KeyDown += new KeyEventHandler(this.zenButton_KeyDown);
            this.zenButton.KeyUp += new KeyEventHandler(this.zenButton_KeyUp);
            this.InitAppearance();
        }
Exemplo n.º 3
0
        public ViewerControl()
        {
            InitializeComponent();

            center = new NoMapPosition().NoMapPositionDelegate;
            Dock   = DockStyle.Fill;
            SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.OptimizedDoubleBuffer,
                     true);
            ContextMenu        = new ContextMenu();
            ContextMenu.Popup += HandlePopup;
            Layout            += ViewerControl_Layout;
            zenButton.Size     = new Size(0, 0);
            zenButton.KeyDown += zenButton_KeyDown;
            zenButton.KeyUp   += zenButton_KeyUp;
            InitAppearance();
        }
Exemplo n.º 4
0
 public void Initialize(MapPositionDelegate mpd, string LLZBoxName)
 {
     this.center = mpd;
     this.llzBox.setName(LLZBoxName);
 }
Exemplo n.º 5
0
 public void Initialize(MapPositionDelegate mpd, string LLZBoxName)
 {
     this.center = mpd;
     this.llzBox.setName(LLZBoxName);
 }