private AgendaSlide(Type type, SlidePurpose slidePurpose, AgendaSection section) { AgendaType = type; SlidePurpose = slidePurpose; Section = section; }
/// <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); }
public static bool MatchesPurpose(PowerPointSlide slide, SlidePurpose purpose) { var agendaSlide = Decode(slide); if (agendaSlide == null) return false; return agendaSlide.SlidePurpose == purpose; }
/// <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; }