Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
 private void BtnKnownHosts_Click(object sender, RoutedEventArgs e)
 {
     HighlightButtons(BtnKnownHosts);
     Content_Frame.Navigate(new KnownHosts());
 }
Ejemplo n.º 3
0
 private void BtnService_Click(object sender, RoutedEventArgs e)
 {
     HighlightButtons(BtnServices);
     Content_Frame.Navigate(new Services());
 }
Ejemplo n.º 4
0
 private void BtnDatabases_Click(object sender, RoutedEventArgs e)
 {
     HighlightButtons(BtnDatabases);
     Content_Frame.Navigate(new Databases());
 }
Ejemplo n.º 5
0
 private void BtnBackups_Click(object sender, RoutedEventArgs e)
 {
     HighlightButtons(BtnBackups);
     Content_Frame.Navigate(new Backup());
 }
Ejemplo n.º 6
0
 private void BtnDeployment_Click(object sender, RoutedEventArgs e)
 {
     Content_Frame.Navigate(new Deployment());
 }
Ejemplo n.º 7
0
 private void BtnWhitelists_Click(object sender, RoutedEventArgs e)
 {
     HighlightButtons(BtnWhitelists);
     Content_Frame.Navigate(new Whitelist());
 }
Ejemplo n.º 8
0
 private void NavigationView_Loaded(object sender, RoutedEventArgs e)
 {
     Content_Frame.Navigate(typeof(Home_Page));
 }
Ejemplo n.º 9
0
 private void BtnKnownHosts_Click(object sender, RoutedEventArgs e)
 {
     Content_Frame.Navigate(new KnownHosts());
 }