/// <summary> /// Click on Load help button /// </summary> private void LoadHelpClick(object sender, MouseButtonEventArgs e) { DeactivateButtons(); LoadHelpUnderBut.Visibility = Visibility.Visible; LoadHelpLabel.FontWeight = FontWeights.Bold; PanelChildForm.Navigate(help); }
/// <summary> /// When clicking on show on list in map page, map page calls this function to open the tables page and search for that message /// </summary> public void OpenFlightInList(CATALL message) { string Cat = message.CAT; if (Cat == "10") { activeSeecat10button(); viewCat10 = new View(); viewCat10.GetSearching(0, message); viewCat10.GetAll(listaCAT10, null, null, listaCATALL, TableCat10, null, null, null, TableCat10.Copy()); viewCat10.GetForm(this); PanelChildForm.Navigate(viewCat10); } if (Cat == "21 v. 2.1") { activeSeeCat21button(); viewCat21 = new View(); viewCat21.GetSearching(1, message); viewCat21.GetAll(null, listaCAT21v21, null, listaCATALL, null, null, TableCat21v21, null, TableCat21v21.Copy()); viewCat21.GetForm(this); PanelChildForm.Navigate(viewCat21); } if (Cat == "21 v. 0.23" || Cat == "21 v. 0.26") { activeSeecat23button(); viewCat23 = new View(); viewCat23.GetSearching(2, message); viewCat23.GetAll(null, null, listaCAT21v23, listaCATALL, null, TableCat21v23, null, null, TableCat21v23.Copy()); viewCat23.GetForm(this); PanelChildForm.Navigate(viewCat23); } }
/// <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); } }
/// <summary> /// Click on map help button /// </summary> private void MapHelpClick(object sender, MouseButtonEventArgs e) { DeactivateButtons(); MapHelpUnderBut.Visibility = Visibility.Visible; MapHelpLabel.FontWeight = FontWeights.Bold; MapHelp maphelp = new MapHelp(); PanelChildForm.Navigate(maphelp); }
/// <summary> /// Start the page /// </summary> public HelpForm() { InitializeComponent(); DeactivateButtons(); MapHelpUnderBut.Visibility = Visibility.Visible; MapHelp maphelp = new MapHelp(); MapHelpLabel.FontWeight = FontWeights.Bold; PanelChildForm.Navigate(maphelp); }
private void Main_Load(object sender, RoutedEventArgs e) { DisableButtons(); HomeLabel.HorizontalAlignment = HorizontalAlignment.Right; HomeIco1.Visibility = Visibility.Hidden; HomeIco2.Visibility = Visibility.Visible; HomePanel.Background = new SolidColorBrush(RGBColors.color1); FormTitle.Text = "Home"; FormTitle.Foreground = new SolidColorBrush(RGBColors.color1); HomeLabel.Foreground = new SolidColorBrush(RGBColors.color1); FormIco.Source = new BitmapImage(new Uri(@"images/Casa Color.png", UriKind.Relative)); Intro Presentation = new Intro(); Presentation.GetMainWindow(this); PanelChildForm.Navigate(Presentation); }
/// <summary> /// When clicking on show on map on tables pages, tables pages calls this function to open the map and search for that message /// </summary> public void OpenFlightInMap(CATALL flight) { if (listaCATALL.Exists(x => x.num == Convert.ToInt32(flight.num))) { } else { listaCATALL.Add(flight); } ActiveMapButton(); mapform = new MapView(); mapform.GetForm(this); mapform.GetList(listaCATALL, Archivo.AirportCodesList); mapform.SearchFlightInMap(flight); mapstarted = true; PanelChildForm.Navigate(mapform); }
/// <summary> /// Open the help tab /// </summary> private void Help_Click(object sender, MouseButtonEventArgs e) { DisableButtons(); HelpLabel.HorizontalAlignment = HorizontalAlignment.Right; HelpIco1.Visibility = Visibility.Hidden; HelpIco2.Visibility = Visibility.Visible; HelpPanel.Background = new SolidColorBrush(RGBColors.color5); FormTitle.Text = "Help"; FormTitle.Foreground = new SolidColorBrush(RGBColors.color5); HelpLabel.Foreground = new SolidColorBrush(RGBColors.color5); FormIco.Source = new BitmapImage(new Uri(@"images/Help Color2.png", UriKind.Relative)); if (mapview.started == true) { mapform.Pause(); } help = new HelpForm(); PanelChildForm.Navigate(help); }
/// <summary> /// Open load from another side other than the button /// </summary> public void OpenLoad() { DisableButtons(); LoadFilesLabel.HorizontalAlignment = HorizontalAlignment.Right; LoadIco1.Visibility = Visibility.Hidden; LoadIco2.Visibility = Visibility.Visible; LoadPanel.Background = new SolidColorBrush(RGBColors.color2); FormTitle.Text = "Load Files"; FormTitle.Foreground = new SolidColorBrush(RGBColors.color2); LoadFilesLabel.Foreground = new SolidColorBrush(RGBColors.color2); FormIco.Source = new BitmapImage(new Uri(@"images/File Color.png", UriKind.Relative)); if (mapview.started == true) { mapform.Pause(); } if (Loadstarted == false) { load = new LoadFiles(); load.SetArchivo(Archivo); load.GetForm(this); Loadstarted = true; } PanelChildForm.Navigate(load); }