private void buttImLegend_Click(object sender, EventArgs e) { if (legendStatus == LegendSatus.LEGEND_VISIBLE) { pLegend.Visible = false; legendStatus = LegendSatus.LEGEND_NOT_VISIBLE; } else if (legendStatus == LegendSatus.LEGEND_NOT_VISIBLE) { pLegend.Visible = true; legendStatus = LegendSatus.LEGEND_VISIBLE; } }
//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; } }
//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; } }
private void buttImLegend_Click(object sender, EventArgs e) { if (legendStatus==LegendSatus.LEGEND_VISIBLE) { pLegend.Visible = false; legendStatus = LegendSatus.LEGEND_NOT_VISIBLE; } else if (legendStatus == LegendSatus.LEGEND_NOT_VISIBLE) { pLegend.Visible = true; legendStatus = LegendSatus.LEGEND_VISIBLE; } }