/// <summary> /// Выполнить начальную инициализацию /// </summary> public static void Initialize([NotNull] Activity activity) { if (_single == null) { _single = new TestsManager(activity); } var currentBook = Helpers.ReadDiscContent(CURRENT_BOOK_FILE); if (currentBook != null) { _single.SetCurrentBookByCaption(currentBook, false); var currentChapter = Helpers.ReadDiscContent(CURRENT_CHAPTER_FILE); if (currentChapter != null) { _single.CurrentBook.SetCurrentChapterByCaption(currentChapter, false); } } _single.SetCurrentTestKind(int.TryParse(Helpers.ReadDiscContent(CURRENT_TEST_KIND_FILE), out var testKindValue) ? (TestKind)testKindValue : default(TestKind), false); }