private void Admin_OnLocalFileListRequestReceived(ExternalAdmin sender)
        {
            List<FileItem> items = PersistenceManager.GetLocalFilesList().Select(x => new FileItem() { Name = x.Name }).ToList();
            RCS_FileList list = new RCS_FileList(items, RemoteType.Client);

            sender.SendLocalFilesList(list);
        }
        private async void Admin_OnEventRequestReceived(ExternalAdmin sender)
        {
            List<LoggedEvent> events = await EventsManager.GetLoggedEvents();

            List<Event> convEvents = events.Select(x => new Event() { Type = x.Type, Description = x.Description, NameOfConcernedJob = x.ConcernedJob.Name, Time = x.Time }).ToList();

            sender.SendEventsList(new Event_List() { List = convEvents });
        }
        private void AdminListener_OnConnectionReceived(Windows.Networking.Sockets.StreamSocket socket)
        {
            ExternalAdmin admin = new ExternalAdmin(socket);

            admin.OnConfigurationImageReceived += Admin_OnConfigurationImageReceived;
            admin.OnJobConfigurationReceived += Admin_OnJobConfigurationReceived;
            admin.OnCancelRequestReceived += Admin_OnCancelRequestReceived;
            admin.OnEventRequestReceived += Admin_OnEventRequestReceived;

            admin.OnLocalFileListRequestReceived += Admin_OnLocalFileListRequestReceived;
            admin.OnLocalFileAddRequestReceived += Admin_OnLocalFileAddRequestReceived;
            admin.OnLocalFileRemoveRequestReceived += Admin_OnLocalFileRemoveRequestReceived;
        }