private void radio(object sender, RoutedEventArgs e) { a1.IsEnabled = false; a2.IsEnabled = false; a3.IsEnabled = false; a4.IsEnabled = false; a5.IsEnabled = false; words w = new words(); w.initialize(); string a = w.translation[ques]; if (a1.IsChecked == true && a1.Content.ToString() == a) { r.insert(w.word[ques], a, a1.Content.ToString()); result.Content = "True :)"; } else if (a2.IsChecked == true && a2.Content.ToString() == a) { r.insert(w.word[ques], a, a2.Content.ToString()); result.Content = "True :)"; } else if (a3.IsChecked == true && a3.Content.ToString() == a) { r.insert(w.word[ques], a, a3.Content.ToString()); result.Content = "True :)"; } else if (a4.IsChecked == true && a4.Content.ToString() == a) { r.insert(w.word[ques], a, a4.Content.ToString()); result.Content = "True :)"; } else if (a5.IsChecked == true && a5.Content.ToString() == a) { r.insert(w.word[ques], a, a5.Content.ToString()); result.Content = "True :)"; } else if (a1.IsChecked == true && a1.Content.ToString() != a) { result.Content = "False :("; r.insert(w.word[ques], a, a1.Content.ToString()); } else if (a2.IsChecked == true && a2.Content.ToString() != a) { result.Content = "False :("; r.insert(w.word[ques], a, a2.Content.ToString()); } else if (a3.IsChecked == true && a3.Content.ToString() != a) { result.Content = "False :("; r.insert(w.word[ques], a, a3.Content.ToString()); } else if (a4.IsChecked == true && a4.Content.ToString() != a) { result.Content = "False :("; r.insert(w.word[ques], a, a4.Content.ToString()); } else if (a5.IsChecked == true && a5.Content.ToString() != a) { result.Content = "False :("; r.insert(w.word[ques], a, a5.Content.ToString()); } else { } }