Exemplo n.º 1
0
        //switch view between map and tabs with gps info
        private void mItMap_Click(object sender, EventArgs e)
        {
            if (mapStatus == MapStatus.MAP_VISIBLE)
            {
                setVisibleImButtons(false);
                tabControl1.Visible = true;
                mapStatus           = MapStatus.TABS_VISIBLE;
                pLegend.Visible     = false;
                legendStatus        = LegendSatus.LEGEND_NOT_VISIBLE;

                d3dRenderStatus = D3dRenderStatus.D3D_NOT_RENDER;
                mItMap.Text     = "MAP";
                if (gpsStatus == GpsStatus.GPS_OPEN)
                {
                    timerSatelliteView.Enabled = true;
                }
                else
                {
                    timerSatelliteView.Enabled = false;
                }
            }
            else
            {
                setVisibleImButtons(true);
                tabControl1.Visible = false;
                mapStatus           = MapStatus.MAP_VISIBLE;
                pLegend.Visible     = false;
                legendStatus        = LegendSatus.LEGEND_NOT_VISIBLE;

                mItMap.Text = "PROPERTIES";
                if (drawStatus != DrawStatus.NOT_DRAW)
                {
                    d3dRenderStatus = D3dRenderStatus.D3D_RENDER;
                }
                timerSatelliteView.Enabled = false;
            }
        }
Exemplo n.º 2
0
        //switch view between map and tabs with gps info
        private void mItMap_Click(object sender, EventArgs e)
        {
            if (mapStatus == MapStatus.MAP_VISIBLE)
              {
                  setVisibleImButtons(false);
                  tabControl1.Visible = true;
                  mapStatus = MapStatus.TABS_VISIBLE;
                  pLegend.Visible = false;
                  legendStatus = LegendSatus.LEGEND_NOT_VISIBLE;

                  d3dRenderStatus = D3dRenderStatus.D3D_NOT_RENDER;
                  mItMap.Text = "MAP";
                  if(gpsStatus==GpsStatus.GPS_OPEN)
                      timerSatelliteView.Enabled = true;
                  else
                      timerSatelliteView.Enabled = false;
              }
              else
              {

                  setVisibleImButtons(true);
                  tabControl1.Visible = false;
                  mapStatus = MapStatus.MAP_VISIBLE;
                  pLegend.Visible = false;
                  legendStatus = LegendSatus.LEGEND_NOT_VISIBLE;

                  mItMap.Text = "PROPERTIES";
                  if(drawStatus!= DrawStatus.NOT_DRAW)
                    d3dRenderStatus = D3dRenderStatus.D3D_RENDER;
                  timerSatelliteView.Enabled = false;
              }
        }