public static CarrousselButton CreateCarrousselLinkButton(string buttonName, string url, int Container, int Order) { CarrousselButton btn = new CarrousselButton(); btn.Container = Container; btn.DocumentType = CreateLink(url, buttonName); btn.Order = Order; btn.Type = ButtonType.Default; return(btn); }
public static CarrousselButton CreateCarrousselShareButton(int Container, int Order) { CarrousselButton btn = new CarrousselButton(); btn.Container = Container; btn.DocumentType = new WebLink(); (btn.DocumentType as WebLink).Uri = new Uri("share:"); btn.Order = Order; btn.Type = ButtonType.Share; return(btn); }
public static CarrousselButton CreateCarrousselTextButton(string buttonName, string value, int Container, int Order) { CarrousselButton btn = new CarrousselButton(); btn.Container = Container; btn.DocumentType = CreateText(buttonName); btn.Value = value; btn.Order = Order; btn.Type = ButtonType.Default; return(btn); }