void ChildStateChanged(object sender, ServiceStateChangedEventArgs e)
        {
            ServiceInstance child = (ServiceInstance)sender;

            if (_commChannel != null && _commChannel.State == CommunicationState.Opened)
            {
                _commChannel.Engine.ChildServiceStateChanged(_childServices[child], e.StateAfter);
            }
        }
        void LegacyInstance_StateChanged(object sender, Easynet.Edge.Core.Services.ServiceStateChangedEventArgs e)
        {
            try
            {
                legacy.ServiceInstance instance = (Easynet.Edge.Core.Services.ServiceInstance)sender;
                instance.OutcomeReported += new EventHandler(instance_OutcomeReported);
                this.Invoke(updateGridMethod, new Object[] { instance });


                this.Invoke(setLogMethod, new Object[] { string.Format("\n{0}: {1} is {2} {3}\r\n", instance.AccountID, instance.Configuration.Name, e.StateAfter, DateTime.Now.ToString("dd/MM/yy HH:mm")) });
                if (e.StateAfter == legacy.ServiceState.Ready)
                {
                    instance.Start();
                }
            }
            catch (Exception ex)
            {
                Easynet.Edge.Core.Utilities.Log.Write("SchedulingControlForm", ex.Message, ex, Easynet.Edge.Core.Utilities.LogMessageType.Error);
            }
        }