Пример #1
0
 /// <summary>
 /// Checks to see if a custom property formatter is available
 /// </summary>
 /// <param name="tagId">The tag Id to check for a formatter</param>
 /// <returns>An IExifPropertyFormatter or null if there's no formatter available</returns>
 internal IExifPropertyFormatter QueryForCustomPropertyFormatter(int tagId)
 {
     QueryPropertyFormatterEventArgs eventArgs = new QueryPropertyFormatterEventArgs(tagId);
     this.FireQueryPropertyFormatter(eventArgs);
     return eventArgs.PropertyFormatter;
 }
Пример #2
0
        /// <summary>
        /// Fires the QueryPropertyFormatter event
        /// </summary>
        /// <param name="eventArgs">Args data for the QueryPropertyFormatter event</param>
        private void FireQueryPropertyFormatter(QueryPropertyFormatterEventArgs eventArgs)
        {
            EventHandler<QueryPropertyFormatterEventArgs> queryPropertyFormatter = this.QueryPropertyFormatter;

            if (queryPropertyFormatter != null)
            {
                queryPropertyFormatter(this, eventArgs);
            }
        }