Exemplo n.º 1
0
 public static void CreateFileIfNotExists()
 {
     if (!FileProvider.IsExists(questionsPath))
     {
         var questions = GetQuestions();
         SaveQuestions(questions);
     }
 }
Exemplo n.º 2
0
        public void Init()
        {
            QuestionStorage.CreateFileIfNotExists();

            if (!FileProvider.IsExists(userResultsPath))
            {
                var results = new List <UserResult>();
                SaveResult(results);
            }
        }