public override void OnInitialize(object sender, EventArgs e) { if (!BindingExist("PageTeaserType")) { Bindings.Add("PageTeaserType", TeaserFacade.GetPageTeaserTypes().First().AssemblyQualifiedName); Bindings.Add("Name", String.Empty); } }
public static Dictionary <string, string> GetPageTeaserTypes() { return(TeaserFacade.GetPageTeaserTypes().ToDictionary(t => t.AssemblyQualifiedName, GetTitle)); }