/// <summary> /// Initializes a new instance of the <see cref="Tile" /> class. /// </summary> /// <param name="package">The package.</param> /// <remarks>...</remarks> public Tile(Package package) { this.package = package; InitializeComponent(); nm = new DynamicNotificationManager( OnNotificationLogic, NotificationProviderType.Custom, OnNotificationCompleteLogic ); logger = new DynamicLog(OnLoggerLog); }
/// <summary> /// Called when [logger log]. /// </summary> /// <param name="logger">The logger.</param> /// <param name="level">The level.</param> /// <param name="message">The message.</param> /// <param name="exception">The exception.</param> /// <param name="args">The arguments.</param> /// <remarks>...</remarks> protected void OnLoggerLog(DynamicLog logger, LogLevel level, object message, System.Exception exception, object[] args) { nm.ShowNotification(new Notification(level.ToString(), message.ToString(), 1000 * 30)); }