public void ScoreQuestion(int questionNumber, int score)
        {
            ResultQuestionFormat data = new ResultQuestionFormat();
            int questionIndex         = questionNumber - 1;

            data.question = questionaires[questionIndex].GetQuestionaireText;
            data.score    = score;

            resultSaveFormat.AddData(data);
            GoingForward();

            if (questionNumber == questionaires.Length - 1)
            {
                SaveToFile();
            }
        }
        public void AddData(ResultQuestionFormat data)
        {
            if (saveData == null)
            {
                saveData = new ResultQuestionFormat[1] {
                    data
                };
                return;
            }

            ResultQuestionFormat[] tempArray = new ResultQuestionFormat[saveData.Length];
            for (int ix = 0; ix < saveData.Length; ++ix)
            {
                tempArray[ix] = saveData[ix];
            }

            saveData = new ResultQuestionFormat[saveData.Length + 1];
            for (int ix = 0; ix < tempArray.Length; ++ix)
            {
                saveData[ix] = tempArray[ix];
            }

            saveData[saveData.Length - 1] = data;
        }