public static void Refresh()
    {
        var FoundFiles = GetCataloguePath();

        foreach (var FoundFile in FoundFiles)
        {
            JObject o1      = JObject.Parse(File.ReadAllText((@FoundFile.Replace("/", @"/"))));
            var     IDs     = o1.GetValue("m_InternalIds");
            var     ListIDs = IDs.ToObject <List <string> >().Where(x => x.Contains(".bundle") == false);

            catalogueData = AssetDatabase.LoadAssetAtPath <CatalogueData>("Assets/CachedData/CatalogueData.asset");
            var flip        = new FileInfo(FoundFile);
            var ToPutInList = ListIDs.ToList();
            ToPutInList.Insert(0, "null");
            catalogueData.Data[flip.Directory.Parent.Name] = ToPutInList;
        }

        Options = new Dictionary <string, string[]>();
        foreach (var keyv in catalogueData.Data)
        {
            Options[keyv.Key] = keyv.Value.ToArray();
        }

        EditorUtility.SetDirty(catalogueData);
    }
        public int[] GetAppointmentsQuantity()
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetAppointmentsQuantity());
        }
        public int GetProcessBySubprocess(int subprocess)
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetProcessBySubprocess(subprocess));
        }
        public int[] GetAppointmensQuantityFirstSemester()
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetAppointmensQuantityFirstSemester());
        }
        public List <CatalogueModels> GetListProcessProfessional(int id_professional)
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetListProcessProfessional(id_professional));
        }
        public List <CatalogueModels> GetSubprocessListByProcess(int processId)
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetSubprocessListByProcess(processId));
        }
        public List <CatalogueModels> GetCatalogueFunctionary(string _catalogue)
        {
            CatalogueData catalogue = new CatalogueData();

            return(catalogue.GetCatalogueFunctionary(_catalogue));
        }
        public void DeleteCatalogueItems(CatalogueModels _catalogue)
        {
            CatalogueData adminData = new CatalogueData();

            adminData.DeleteCatalogueItems(_catalogue);
        }
        public void ModifyCatalogueItems(CatalogueModels _catalogue)
        {
            CatalogueData adminData = new CatalogueData();

            adminData.ModifyCatalogueItems(_catalogue);
        }
        public void RegisterCatalogueItem(CatalogueModels _catalogue)
        {
            CatalogueData adminData = new CatalogueData();

            adminData.RegisterCatalogueItems(_catalogue);
        }
        public List <CatalogueModels> GetListCatalogue(CatalogueModels _catalogue)
        {
            CatalogueData adminData = new CatalogueData();

            return(adminData.GetListCatalogue(_catalogue));
        }