예제 #1
0
        public TestQuestionsData(NewDataSet.verseRow theVerseRow, NewDataSet projFile)
        {
            NewDataSet.TestQuestionsRow[] theTestQuestionsRows = theVerseRow.GetTestQuestionsRows();
            NewDataSet.TestQuestionsRow   theTestQuestionsRow;
            if (theTestQuestionsRows.Length == 0)
            {
                theTestQuestionsRow = projFile.TestQuestions.AddTestQuestionsRow(theVerseRow);
            }
            else
            {
                theTestQuestionsRow = theTestQuestionsRows[0];
            }

            foreach (NewDataSet.TestQuestionRow aTestingQuestionRow in theTestQuestionsRow.GetTestQuestionRows())
            {
                Add(new TestQuestionData(aTestingQuestionRow, projFile));
            }
        }
예제 #2
0
        public RetellingsData(NewDataSet.verseRow theVerseRow, NewDataSet projFile)
        {
            NewDataSet.RetellingsRow[] theRetellingsRows = theVerseRow.GetRetellingsRows();
            NewDataSet.RetellingsRow   theRetellingsRow;
            if (theRetellingsRows.Length == 0)
            {
                theRetellingsRow = projFile.Retellings.AddRetellingsRow(theVerseRow);
            }
            else
            {
                theRetellingsRow = theRetellingsRows[0];
            }

            foreach (NewDataSet.RetellingRow aRetellingRow in theRetellingsRow.GetRetellingRows())
            {
                Add(new StringTransfer((aRetellingRow.IsRetelling_textNull()) ? "" : aRetellingRow.Retelling_text));
                MemberIDs.Add(aRetellingRow.memberID);
            }
        }
        public CoachNotesData(NewDataSet.verseRow theVerseRow, NewDataSet projFile)
            : base(CstrCollectionElementName)
        {
            NewDataSet.CoachNotesRow[] theCoachNotesRows = theVerseRow.GetCoachNotesRows();
            NewDataSet.CoachNotesRow   theCoachNotesRow;
            if (theCoachNotesRows.Length == 0)
            {
                theCoachNotesRow = projFile.CoachNotes.AddCoachNotesRow(theVerseRow);
            }
            else
            {
                theCoachNotesRow = theCoachNotesRows[0];
            }

            foreach (NewDataSet.CoachConversationRow aCoachConversationRow in theCoachNotesRow.GetCoachConversationRows())
            {
                Add(new CoachNoteData(aCoachConversationRow));
            }
        }
예제 #4
0
        public AnchorsData(NewDataSet.verseRow theVerseRow, NewDataSet projFile)
        {
            NewDataSet.anchorsRow[] theAnchorsRows = theVerseRow.GetanchorsRows();
            NewDataSet.anchorsRow   theAnchorsRow;
            if (theAnchorsRows.Length == 0)
            {
                theAnchorsRow = projFile.anchors.AddanchorsRow(false, theVerseRow);
            }
            else
            {
                theAnchorsRow = theAnchorsRows[0];
            }

            if (!theAnchorsRow.IskeyTermCheckedNull())
            {
                IsKeyTermChecked = theAnchorsRow.keyTermChecked;
            }

            foreach (NewDataSet.anchorRow anAnchorRow in theAnchorsRow.GetanchorRows())
            {
                Add(new AnchorData(anAnchorRow, projFile));
            }
        }
예제 #5
0
        public VerseData(NewDataSet.verseRow theVerseRow, NewDataSet projFile)
        {
            guid = theVerseRow.guid;

            if (!theVerseRow.IsfirstNull())
            {
                IsFirstVerse = theVerseRow.first;
            }

            if (!theVerseRow.IsvisibleNull())
            {
                IsVisible = theVerseRow.visible;
            }

            VernacularText      = new StringTransfer((!theVerseRow.IsVernacularNull()) ? theVerseRow.Vernacular : null);
            NationalBTText      = new StringTransfer((!theVerseRow.IsNationalBTNull()) ? theVerseRow.NationalBT : null);
            InternationalBTText = new StringTransfer((!theVerseRow.IsInternationalBTNull()) ? theVerseRow.InternationalBT : null);

            Anchors         = new AnchorsData(theVerseRow, projFile);
            TestQuestions   = new TestQuestionsData(theVerseRow, projFile);
            Retellings      = new RetellingsData(theVerseRow, projFile);
            ConsultantNotes = new ConsultantNotesData(theVerseRow, projFile);
            CoachNotes      = new CoachNotesData(theVerseRow, projFile);
        }