Пример #1
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     if (_cardsService.Add(_topic, _category, _deck, new Card()
     {
         Title = tbTitle.Text,
         Question = tbQuestion.Text,
         Answer = tbAnswer.Text
     }))
     {
         Close();
     }
 }