private void chkbxIsMastered_Checked(object sender, RoutedEventArgs e) { Xceed.Wpf.Controls.CheckBox chk = (Xceed.Wpf.Controls.CheckBox)sender; if (chk.IsChecked != true) { chk.IsChecked = true; } Word word = (Word)xdgFocusWords.SelectedItem; // MessageBox.Show("check" + word); WordDaoImpl wordDao = new WordDaoImpl(); Word selectedWord = (Word)xdgFocusWords.SelectedItem; // MessageBox.Show(selectedWord.IsMastered.ToString()); selectedWord.IsMastered = true; wordDao.updateNote((Word)selectedWord); //MessageBox.Show(selectedWord.Name); // xdgFocusWords.Columns.Clear(); xdgFocusWords.ItemsSource = wordDao.getFirstNunmasteredWords(15); }
private void chkbxIsMastered_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { // MessageBox.Show("double"); Xceed.Wpf.Controls.CheckBox chk = (Xceed.Wpf.Controls.CheckBox)sender; chk.IsChecked = true; }