/// <summary> /// Initialize and register the notification from TNotifications to Growl /// By attaching it to the applicationID /// </summary> /// <param name="applicationName"> /// the application nane /// </param> /// <param name="applicationID"> /// the application id /// </param> /// <param name="applicationIcon"> /// the application icon /// </param> public SimpleGrowlNotifier(String applicationName, String applicationID, Stream applicationIcon) { if (!typeof(TNotifications).IsEnum) { throw new NotSupportedException("TNotifications must be an Enum"); } _registration = new RegistrationDictionnary(applicationName, applicationID, applicationIcon, GetNotificationsList()); }
/// <summary> /// Dipose method /// </summary> public void Dispose() { _registration.Dispose(); _registration = null; }