private void NavigationView_SelectionChanged(NavigationView sender, NavigationViewSelectionChangedEventArgs args) { var db = new SQLiteConnection(_dbPath); if (args.IsSettingsSelected) { } else { NavigationViewItem item = args.SelectedItem as NavigationViewItem; switch (item.Tag.ToString()) { case "Home": Content_Frame.Navigate(typeof(Home_Page)); break; case "People": try { People = db.Table <Person>().OrderBy(m => m.Id).ToList(); Content_Frame.Navigate(typeof(People_Page)); break; } catch { break; } case "Attendance": try { Attendances = db.Table <Attendance>().OrderBy(m => m.Id).ToList(); Content_Frame.Navigate(typeof(Attendance_Page)); break; } catch { break; } case "Add_Person": Content_Frame.Navigate(typeof(Add_People_Page)); break; case "Download": Content_Frame.Navigate(typeof(Download)); break; case "Add_Attendance": Content_Frame.Navigate(typeof(Take_Attendance_Page)); break; } } }
private void BtnKnownHosts_Click(object sender, RoutedEventArgs e) { HighlightButtons(BtnKnownHosts); Content_Frame.Navigate(new KnownHosts()); }
private void BtnService_Click(object sender, RoutedEventArgs e) { HighlightButtons(BtnServices); Content_Frame.Navigate(new Services()); }
private void BtnDatabases_Click(object sender, RoutedEventArgs e) { HighlightButtons(BtnDatabases); Content_Frame.Navigate(new Databases()); }
private void BtnBackups_Click(object sender, RoutedEventArgs e) { HighlightButtons(BtnBackups); Content_Frame.Navigate(new Backup()); }
private void BtnDeployment_Click(object sender, RoutedEventArgs e) { Content_Frame.Navigate(new Deployment()); }
private void BtnWhitelists_Click(object sender, RoutedEventArgs e) { HighlightButtons(BtnWhitelists); Content_Frame.Navigate(new Whitelist()); }
private void NavigationView_Loaded(object sender, RoutedEventArgs e) { Content_Frame.Navigate(typeof(Home_Page)); }
private void BtnKnownHosts_Click(object sender, RoutedEventArgs e) { Content_Frame.Navigate(new KnownHosts()); }