private static void ButtonWebcast_Click(object sender, RoutedEventArgs e) { FrameworkElement fe = sender as FrameworkElement; Webcast webcast = fe.Tag as Webcast; OpenWebcast(webcast); }
public static void FormatWebcaseHyperlink(Hyperlink hyperlink, Webcast webcast) { hyperlink.Inlines.Add(webcast.title); hyperlink.ToolTip = webcast.description; hyperlink.Tag = webcast; hyperlink.Click += hyperlink_Click; }
static void hyperlink_Click(object sender, RoutedEventArgs e) { Hyperlink fe = sender as Hyperlink; Webcast webcast = fe.Tag as Webcast; OpenWebcast(webcast); }
public static void FormatWebcastButton(AugmentedButton ButtonWebcast, Webcast webcast) { ButtonWebcast.Icon = Icons.GetAppIcon(Icons.Webcast); ButtonWebcast.ToolTip = webcast.description; ButtonWebcast.Tag = webcast; ButtonWebcast.Click += ButtonWebcast_Click; }
private static void OpenWebcast(Webcast webcast) { FeatureTrackingManager.Instance.UseFeature( Features.Web_AddToLibrary, "KEY", webcast.key ); WebsiteAccess.OpenOffsiteUrl(webcast.url); }