4 Replies Latest reply on Nov 24, 2014 8:14 PM by David Hearn

    AFDatabase.Changed event not fires

    IKovalchuk

      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.