コード例 #1
0
 public void ShowNotification(ISlimTvNotification notification, TimeSpan duration)
 {
     SlimTvNotificationModel.Instance.ShowNotification(notification, duration);
 }
コード例 #2
0
 /// <summary>
 /// Shows the notification using the super layer specified in the <paramref name="notification"/>.
 /// </summary>
 /// <param name="notification">The notification to show.</param>
 /// <param name="duration">Duration to show the given notification.</param>
 public void ShowNotification(ISlimTvNotification notification, TimeSpan duration)
 {
     Notification = notification;
     ServiceRegistration.Get <ISuperLayerManager>().ShowSuperLayer(notification.SuperLayerScreenName, duration);
 }