private void Button1_Click(object sender, RoutedEventArgs e)
        {
            frånvarande = false;
            Child        selectedChild = new Child();
            attendence   attendence    = new attendence();
            dbOperations db            = new dbOperations();
            staff        staffs        = new staff();

            staffs.staff_id = 1;
            DateTime departure = GetTime();

            listView1.SelectedItem = selectedChild;
            db.abscene(staffs.staff_id, (Child)listView1.SelectedItem, GetTime(), frånvarande);
            MessageBox.Show("Du har anmält frånvaro");
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            btn = true;

            Child        selectedChild = new Child();
            dbOperations db            = new dbOperations();
            staff        staffs        = new staff();

            staffs.staff_id = 1;
            DateTime departure = GetTime();

            listView1.SelectedItem = selectedChild;
            db.Attendence(staffs.staff_id, (Child)listView1.SelectedItem, GetTime(), btn);
            MessageBox.Show($"har gått hem");
        }