eksam/Päevaküsimus/Models/Question.cs

25 lines
601 B
C#
Raw Normal View History

2017-01-26 17:50:33 +02:00
using System;
using System.Collections;
using System.Collections.ObjectModel;
namespace Päevaküsimus.Models
{
public class Question
{
public string question { get; set; }
private ObservableCollection<Answer> _answers;
public Question(string question)
{
this.question = question;
this._answers = new ObservableCollection<Answer>();
}
public ObservableCollection<Answer> answers { get { return _answers; } }
public void AddAnswer(Answer answer)
{
_answers.Add(answer);
}
}
}