/// <summary> /// Open the map tab /// </summary> private void MapView_Click(object sender, MouseButtonEventArgs e) { ActiveMapButton(); if (listaCATALL.Count > 0) { if (mapstarted == true) { PanelChildForm.Navigate(this.mapform); } else { mapform = new MapView(); mapform.GetForm(this); mapform.GetList(listaCATALL, Archivo.AirportCodesList); mapstarted = true; PanelChildForm.Navigate(mapform); } } else { NoMessages panel = new NoMessages(); panel.GetForm(this); panel.GetType(5); PanelChildForm.Navigate(panel); } }
/// <summary> /// Open the see table All page /// </summary> private void SeeAll_Click(object sender, MouseButtonEventArgs e) { activeSeeAllButton(); if (mapview.started == true) { mapform.Pause(); } //If simulation is running in map tab, pause the simulation before opening this tab if (listaCATALL.Count > 0) //check if there are messages loaded { Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; if (CATAllstarted == false) //If it's first time we open the see cat all tab we create the page and load it, otherwise, we show it directily { viewAll = new View(); viewAll.GetType(3); viewAll.GetAll(listaCAT10, listaCAT21v21, listaCAT21v23, listaCATALL, null, null, null, TableAll, TableAll.Copy()); viewAll.GetForm(this); CATAllstarted = true; } PanelChildForm.Navigate(viewAll); } else //If no CAT All messages loaded we show the page indicating there is no cat10 messages loaded { NoMessages panel = new NoMessages(); panel.GetType(4); panel.GetForm(this); PanelChildForm.Navigate(panel); } }