Example #1
0
 private static TalkScheduleItem CreateMinistryItem(
     TalkTypesAutoMode talkType,
     string talkName,
     TimeSpan startOffset,
     TimeSpan duration,
     bool isStudentTalk,
     bool useBell,
     bool autoBell,
     bool persistFinalTimerValue,
     bool editableTime)
 {
     return(new TalkScheduleItem(talkType)
     {
         Name = talkName,
         MeetingSectionNameLocalised = Properties.Resources.SECTION_MINISTRY,
         MeetingSectionNameInternal = SectionMinistry,
         StartOffsetIntoMeeting = startOffset,
         OriginalDuration = duration,
         BellApplicable = useBell,
         AutoBell = autoBell,
         PersistFinalTimerValue = persistFinalTimerValue,
         Editable = editableTime,
         IsStudentTalk = isStudentTalk
     });
 }
Example #2
0
 private static TalkScheduleItem CreateLivingItem(
     TalkTypesAutoMode talkType,
     string talkName,
     TimeSpan startOffset,
     TimeSpan duration)
 {
     return(new TalkScheduleItem(talkType)
     {
         Name = talkName,
         MeetingSectionNameLocalised = Properties.Resources.SECTION_LIVING,
         MeetingSectionNameInternal = SectionLiving,
         StartOffsetIntoMeeting = startOffset,
         OriginalDuration = duration,
         Editable = true,
         AllowAdaptive = true
     });
 }
 private static TalkScheduleItem CreateTreasuresItem(
     TalkTypesAutoMode talkType,
     string talkName,
     TimeSpan startOffset,
     TimeSpan duration,
     bool useBell = false,
     bool persistFinalTimerValue = false)
 {
     return(new TalkScheduleItem(talkType)
     {
         Name = talkName,
         MeetingSectionNameLocalised = Properties.Resources.SECTION_TREASURES,
         MeetingSectionNameInternal = SectionTreasures,
         StartOffsetIntoMeeting = startOffset,
         OriginalDuration = duration,
         Bell = useBell,
         PersistFinalTimerValue = persistFinalTimerValue
     });
 }
Example #4
0
 private static TalkScheduleItem CreateTreasuresItem(
     TalkTypesAutoMode talkType,
     string talkName,
     TimeSpan startOffset,
     TimeSpan duration,
     bool isStudentTalk,
     bool useBell,
     bool autoBell,
     bool persistFinalTimerValue)
 {
     return(new TalkScheduleItem(talkType, talkName, SectionTreasures, Properties.Resources.SECTION_TREASURES)
     {
         StartOffsetIntoMeeting = startOffset,
         OriginalDuration = duration,
         BellApplicable = useBell,
         AutoBell = autoBell,
         IsStudentTalk = isStudentTalk,
         PersistFinalTimerValue = persistFinalTimerValue
     });
 }
Example #5
0
 public TalkScheduleItem(TalkTypesAutoMode tt)
 {
     Id = (int)tt;
 }
Example #6
0
 public TalkScheduleItem(TalkTypesAutoMode tt, string name, string meetingSectionNameInternal, string meetingSectionNameLocalised)
     : this((int)tt, name, meetingSectionNameInternal, meetingSectionNameLocalised)
 {
 }