Beispiel #1
0
 internal Boolean isContaining(Frage tmp)
 {
     foreach (Frage item in Fragen)
     {
         if (item.strFragetext.Equals(tmp.strFragetext))
         {
             return(true);
         }
     }
     return(false);
 }
        private void ButtonSave_Click(object sender, RoutedEventArgs e)
        {
            int i;

            if (radioButtonChoice.IsChecked == true)
            {
                i = 0;
            }
            else
            {
                i = 1;
            }

            tmpFrage = new Frage(textBoxText.Text, i);

            this.DialogResult = true;
            this.Close();
        }