public FolderListFragmentAdapter(Context context)
 {
     li      = LayoutInflater.From(context);
     cont    = context;
     folders = FolderStorage.GetInstance();
     folders.SetNotifier(NotifyItemChanged);
 }
 public SoundActivityFragmentHolder(int index)
 {
     if (index != -1)
     {
         folder = FolderStorage.GetInstance()[index];
     }
 }
예제 #3
0
    public void CheckItem(FolderStorage item)
    {
        Debug.Log("clar");
        checkNotes.Remove(item);
        SaveJSONdata();
        Destroy(item.gameObject);

        Comp.SetTrigger("s");
    }
예제 #4
0
        /// <summary>
        /// 列出所有文件、文件夹
        /// </summary>
        public async void AllFileFolder()
        {
            var fileFolder = await FolderStorage.GetItemsAsync();

            foreach (var temp in fileFolder)
            {
                if (temp.IsOfType(StorageItemTypes.File))
                {
                }
                else if (temp.IsOfType(StorageItemTypes.Folder))
                {
                }
            }
        }
        private void CompareWithLocal(byte[] buffer, long actualStart, long actualEnd)
        {
            FolderStorage storage = new FolderStorage();

            storage        = new FolderStorage();
            storage.Config = new StorageTypeElement
            {
                Folder = "~/App_Data"
            };

            byte[] initialBuffer = storage.Read("sample.mp4", actualStart, actualEnd);
            if (!ArraysEqual(buffer, initialBuffer))
            {
                throw new Exception("not equals");
            }
        }
예제 #6
0
    void CreateCheckNoteItem(string name, int icona, int index)
    {
        GameObject item = Instantiate(NotePrefab);

        item.transform.SetParent(content);
        item.transform.localPosition = new Vector3(transform.position.x, transform.position.y, 0);

        item.transform.localScale = new Vector3(1, 1, 1);

        FolderStorage itemObject = item.GetComponent <FolderStorage>();



        itemObject.SetObjecInfo2(name, icona, index);
        checkNotes.Add(itemObject);
        FolderStorage temp = itemObject;

        itemObject.completer.onClick.AddListener(delegate { CheckItem(temp); });


        SaveJSONdata();
    }
예제 #7
0
 public override int GetHashCode()
 {
     return(FolderStorage?.GetHashCode() ?? 0);
 }