Пример #1
0
        public Question(string Name, questionDB qst, answerDB ans, string User)
        {
            InitializeComponent();
            name        = Name;
            _questionDB = qst;
            _answerDB   = ans;
            ScreenName  = User;
            int index = _questionDB.GetFirst(name);

            MakeQuestion(index);
        }
Пример #2
0
        private void MakeStorage(string[] lijsten)
        {
            _questionDB = new questionDB();
            _questionDB.empty();
            _answerDB = new answerDB();
            _answerDB.empty();

            for (var i = 0; i < lijsten.Count(); i++)
            {
                _questionDB.AddQuestions(lijsten[i]);
            }
        }