Пример #1
0
        public WalkRoutePage(DiwiPageBase parent)
            : base(parent)
        {
            mMenu.addItem("Voeg Text toe", new DiwiUIMenu.DiwiMenuCallbackHandler(doText), AppController.sTextIcon);
            mMenu.addItem("Voeg Foto toe", new DiwiUIMenu.DiwiMenuCallbackHandler(doFoto), AppController.sFotoIcon);
            mMenu.addItem("Voeg Video toe", new DiwiUIMenu.DiwiMenuCallbackHandler(doVideo), AppController.sVideoIcon);
            mMenu.addItem("Stop Route", new DiwiUIMenu.DiwiMenuCallbackHandler(doStopRoute), AppController.sStopRIcon);
            mMenu.addItem("Toon Volksmond", new DiwiUIMenu.DiwiMenuCallbackHandler(doUGC), AppController.sUGCIcon);
            mMenu.addItem("Terug", new DiwiUIMenu.DiwiMenuCallbackHandler(doTerug), AppController.sTerugIcon);

            poiCB = new POIHandler(navPointReceive);

            AppController.sKwxClient.poiCallback += new KwxClient.POICallback(navPointMessage);
            MapHandler.sDownloadCallback         += new MapHandler.CallbackHandler(mapReceivedCB);

            mZoomIn  = new DiwiUIButton(offScreenGraphics, 146, 170, "Zoom+", buttonZoomIn, this);
            mZoomOut = new DiwiUIButton(offScreenGraphics, 146, 170, "Zoom-", buttonZoomOut, this);

            addDrawable(mZoomIn);
            addDrawable(mZoomOut);

            gpsText = new DiwiUIText(Color.Black, "Geen GPS", new Font("Arial", 12, FontStyle.Bold));
            AppController.sGpsReader.callback += new GpsReader.CallbackHandler(gpsMessage);

            addDrawable(gpsText);

            reOrient();

            mIsMapPage = true;
        }
Пример #2
0
        public LoginPage(DiwiPageBase parent)
            : base(parent)
        {
            mMenu.addItem("Terug", new DiwiUIMenu.DiwiMenuCallbackHandler(doTerug), AppController.sTerugIcon);
            mOkButton = new DiwiUIButton(offScreenGraphics, 146, 170, "Login", buttonOK, this);

            AppController.sKwxClient.messageCallback += new KwxClient.MessageCallback(serverMessage);

            mUserText.text   = "user:"******"pass:"******"";

            addDrawable(mUserText);
            addDrawable(mPassText);
            addDrawable(mOkButton);
            addDrawable(mServerMess);

            this.Controls.Add(mUserBox);
            this.Controls.Add(mPassBox);


            reOrient();

            title = "Login";
        }