public static void Main1()
            {
                var eventHandler = new EasyAENotificationEventHandler(easyAEClient_Notification);

                EasyAEClient.Notification += eventHandler;

                Console.WriteLine("Processing event notifications...");
                var subscriptionFilter = new AESubscriptionFilter
                {
                    Sources = new AENodeDescriptor[]
                    { "Simulation.ConditionState1", "Simulation.ConditionState2", "Simulation.ConditionState3" }
                };
                int handle = EasyAEClient.SubscribeEvents("", "OPCLabs.KitEventServer.2", 1000, null, subscriptionFilter);

                // The component will perform auto-refresh at this point, give it time to happen
                Console.WriteLine("Waiting for 10 seconds...");
                Thread.Sleep(10 * 1000);

                // Set some events to active state, which will cause them to appear in refresh
                Console.WriteLine("Activating conditions and waiting for 10 seconds...");
                EasyDaClient.WriteItemValue("", "AutoJet.ACPFileServerAE.1", "SimulateEvents.ConditionState1.Activate", true);
                EasyDaClient.WriteItemValue("", "AutoJet.ACPFileServerAE.1", "SimulateEvents.ConditionState2.Activate", true);
                Thread.Sleep(10 * 1000);

                Console.WriteLine("Refreshing subscription and waiting for 10 seconds...");
                EasyAEClient.RefreshEventSubscription(handle);
                Thread.Sleep(10 * 1000);

                EasyAEClient.UnsubscribeEvents(handle);
            }