コード例 #1
0
ファイル: VerseData.cs プロジェクト: sillsdevarchive/onestory
 public VersesData(VersesData rhs)
 {
     FirstVerse = new VerseData(rhs.FirstVerse);
     foreach (VerseData aVerse in rhs)
     {
         Add(new VerseData(aVerse));
     }
 }
コード例 #2
0
 public virtual void ScrollToVerse(int nVerseIndex)
 {
     StrIdToScrollTo = VersesData.LineId(nVerseIndex);
     if (!String.IsNullOrEmpty(StrIdToScrollTo))
     {
         ScrollToElement(StrIdToScrollTo, true);
     }
 }
コード例 #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);
 }
コード例 #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);
        }
コード例 #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();
 }