IKovalchuk

AFDatabase.Changed event not fires

Discussion created by IKovalchuk on Nov 21, 2014
Latest reply on Nov 24, 2014 by David Hearn

How I should use this event. I impement it as described in AFSDK reference:

 

 

 
     class PIAFManager
     {
          static internal EventHandler<AFChangedEventArgs> onChanged = new EventHandler<AFChangedEventArgs>( OnChanged );

          public static bool ConnectAf( string server, string db )
          {
                         .....
                         // afDbEst is AFDatabase type
                         afDbEst.Changed += onChanged;
                         .....
          }

          internal static void OnChanged( object sender, AFChangedEventArgs e )
          {
               logger.Info( "Change event fired." );
          }

     }

 I start my program. Then add/delete/modify elements in PSE and no events come to my app.

Outcomes