Пример #1
0
        // This registers the service
        private void RegisterService()
        {
            if (General.AppRunning)
            {
                if (service != null)
                {
                    General.Remote.UnregisterService(service);
                }

                service = new EventRemoteService(servicename);
                service.ReceiveCommandEvent += service_ReceiveCommandEvent;
                service.UpdateEvent         += service_UpdateEvent;

                General.Remote.RegisterService(service);
            }
        }
Пример #2
0
        // This registers the service
        private void RegisterService()
        {
            if(General.AppRunning)
            {
                if(service != null)
                    General.Remote.UnregisterService(service);

                service = new EventRemoteService(servicename);
                service.ReceiveCommandEvent += service_ReceiveCommandEvent;
                service.UpdateEvent += service_UpdateEvent;

                General.Remote.RegisterService(service);
            }
        }