private void Save_Question_Click(object sender, RoutedEventArgs e) { try { iBL_Imp.Add_theory_q(new BE.TheoryQuestion(txb_question.Text, txb_answer.Text, new string[] { txb_wrong_answer1.Text, txb_wrong_answer2.Text, txb_wrong_answer3.Text }, iBL_Imp.SourceToString(path))); this.Close(); throw new Exception("השאלה נשמרה בהצלחה"); } catch (Exception ex) { MessageBox.Show(ex.Message); } }