示例#1
0
 private AgendaSlide(Type type, SlidePurpose slidePurpose, AgendaSection section)
 {
     AgendaType = type;
     SlidePurpose = slidePurpose;
     Section = section;
 }
示例#2
0
 /// <summary>
 /// Stores metadata in the slide by setting its name.
 /// </summary>
 public static void SetSlideName(PowerPointSlide slide, Type agendaType, SlidePurpose slidePurpose, AgendaSection section)
 {
     slide.Name = Encode(agendaType, slidePurpose, section);
 }
示例#3
0
 public static bool MatchesPurpose(PowerPointSlide slide, SlidePurpose purpose)
 {
     var agendaSlide = Decode(slide);
     if (agendaSlide == null) return false;
     return agendaSlide.SlidePurpose == purpose;
 }
示例#4
0
 /// <summary>
 /// Universal Encode function used for all Agenda Slides.
 /// Packs a set of agenda slide properties to a slide name. Paired with the Decode function.
 /// </summary>
 public static string Encode(Type agendaType, SlidePurpose slidePurpose, AgendaSection section)
 {
     string[] parameters = { Prefix, agendaType.ToString(), slidePurpose.ToString(), section.Encode() };
     return string.Join(Delim[0], parameters);
 }
 public static AgendaSlideConfig AddSlide(SyncFunction syncFunction, SlidePurpose slidePurpose)
 {
     return new AgendaSlideConfig(syncFunction, slidePurpose);
 }
 private AgendaSlideConfig(SyncFunction syncFunction, SlidePurpose slidePurpose)
 {
     SyncFunction = syncFunction;
     SlidePurpose = slidePurpose;
 }