Ejemplo n.º 1
0
 public VersesData(VersesData rhs)
 {
     FirstVerse = new VerseData(rhs.FirstVerse);
     foreach (VerseData aVerse in rhs)
     {
         Add(new VerseData(aVerse));
     }
 }
Ejemplo n.º 2
0
 public virtual void ScrollToVerse(int nVerseIndex)
 {
     StrIdToScrollTo = VersesData.LineId(nVerseIndex);
     if (!String.IsNullOrEmpty(StrIdToScrollTo))
     {
         ScrollToElement(StrIdToScrollTo, true);
     }
 }
Ejemplo n.º 3
0
 public StoryData(NewDataSet.storyRow theStoryRow, NewDataSet projFile,
                  bool bHasIndependentConsultant)
 {
     Name           = theStoryRow.name;
     guid           = theStoryRow.guid;
     StageTimeStamp = (theStoryRow.IsstageDateTimeStampNull()) ? DateTime.Now : theStoryRow.stageDateTimeStamp;
     ProjStage      = new StoryStageLogic(theStoryRow.stage, bHasIndependentConsultant);
     CraftingInfo   = new CraftingInfoData(theStoryRow);
     Verses         = new VersesData(theStoryRow, projFile);
 }
Ejemplo n.º 4
0
        public StoryData(StoryData rhs)
        {
            Name = rhs.Name;

            // the guid shouldn't be replicated
            guid = Guid.NewGuid().ToString();              // rhs.guid;

            StageTimeStamp = rhs.StageTimeStamp;
            ProjStage      = new StoryStageLogic(rhs.ProjStage);
            CraftingInfo   = new CraftingInfoData(rhs.CraftingInfo);
            Verses         = new VersesData(rhs.Verses);
        }
Ejemplo n.º 5
0
 public StoryData(string strStoryName, string strCrafterMemberGuid,
                  string strLoggedOnMemberGuid, bool bIsBiblicalStory,
                  ProjectSettings projSettings)
 {
     Name           = strStoryName;
     guid           = Guid.NewGuid().ToString();
     StageTimeStamp = DateTime.Now;
     ProjStage      = new StoryStageLogic(projSettings);
     CraftingInfo   = new CraftingInfoData(strCrafterMemberGuid, strLoggedOnMemberGuid, bIsBiblicalStory);
     Verses         = new VersesData();
     Verses.CreateFirstVerse();
 }