Beispiel #1
0
 public VerseData()
 {
     guid                = Guid.NewGuid().ToString();
     VernacularText      = new StringTransfer(null);
     NationalBTText      = new StringTransfer(null);
     InternationalBTText = new StringTransfer(null);
     Anchors             = new AnchorsData();
     TestQuestions       = new TestQuestionsData();
     Retellings          = new RetellingsData();
     ConsultantNotes     = new ConsultantNotesData();
     CoachNotes          = new CoachNotesData();
 }
Beispiel #2
0
        protected void InitRetellings(RetellingsData aRetellingsData, int nLayoutRow,
                                      List <string> astrTestors, Font font)
        {
            System.Diagnostics.Debug.Assert(!tableLayoutPanel.Controls.ContainsKey(CstrFieldNameRetellings));
            MultiLineControl aRetellingsCtrl = new MultiLineControl(this, StageLogic,
                                                                    aRetellingsData, font, astrTestors);

            aRetellingsCtrl.Name          = CstrFieldNameRetellings;
            aRetellingsCtrl.ParentControl = this;

            InsertRow(nLayoutRow);
            tableLayoutPanel.SetColumnSpan(aRetellingsCtrl, 2);
            tableLayoutPanel.Controls.Add(aRetellingsCtrl, 0, nLayoutRow);
        }
Beispiel #3
0
        public VerseData(VerseData rhs)
        {
            // the guid shouldn't be replicated
            guid         = Guid.NewGuid().ToString();       // rhs.guid;
            IsFirstVerse = rhs.IsFirstVerse;
            IsVisible    = rhs.IsVisible;

            VernacularText      = new StringTransfer(rhs.VernacularText.ToString());
            NationalBTText      = new StringTransfer(rhs.NationalBTText.ToString());
            InternationalBTText = new StringTransfer(rhs.InternationalBTText.ToString());
            Anchors             = new AnchorsData(rhs.Anchors);
            TestQuestions       = new TestQuestionsData(rhs.TestQuestions);
            Retellings          = new RetellingsData(rhs.Retellings);
            ConsultantNotes     = new ConsultantNotesData(rhs.ConsultantNotes);
            CoachNotes          = new CoachNotesData(rhs.CoachNotes);
        }
Beispiel #4
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);
        }