private void Done1(object sender, RoutedEventArgs e) { mainDal d1 = new mainDal(); d1.addQuiz(li); this.Close(); }