Esempio n. 1
0
        public new StorageFolderOptions GetOptions()
        {
            var options = new StorageFolderOptions();

            CopyToOptions(options);
            return(options);
        }
Esempio n. 2
0
 static void AssertStorageFolder (StorageFolder storageFolder, StorageFolderOptions options)
 {
     AssertContainer (storageFolder, options);
     Assert.AreEqual (storageFolder.StorageUsed, options.StorageUsed);
 }
Esempio n. 3
0
 static void SetStorageFolderOptions (StorageFolderOptions options)
 {
     SetContainerOptions (options);
     options.StorageUsed = 52;
 }
Esempio n. 4
0
 public void StorageFolderInstantiation ()
 {
     var options = new StorageFolderOptions ();
     SetStorageFolderOptions (options);
     var storage_folder = new StorageFolder ("-1", "-1", options);
     AssertStorageFolder (storage_folder, options);
     AssertStorageFolder (storage_folder, storage_folder.GetOptions ());
 }
        void PrepareRoot ()
        {
            var child_count = 0;
            if (!share_all_tags) {
                foreach (var tag in db.Tags.RootCategory.Children) {
                    if (shared_tags.Contains (tag.Id)) {
                        child_count++;
                    }
                }
            } else {
                child_count = db.Tags.RootCategory.Children.Count;
            }

            var rootOptions = new StorageFolderOptions {
                IsRestricted = true,
                Title = "F-Spot RootCategory",
                ChildCount = child_count
            };

            var root = new StorageFolder(id.ToString (), "-1", rootOptions);

            tags_cache.Add (db.Tags.RootCategory.Id, root);
        }
Esempio n. 6
0
 public new StorageFolderOptions GetOptions ()
 {
     var options = new StorageFolderOptions ();
     CopyToOptions (options);
     return options;
 }
Esempio n. 7
0
        protected void CopyToOptions (StorageFolderOptions options)
        {
            base.CopyToOptions (options);

            options.StorageUsed = StorageUsed;
        }
Esempio n. 8
0
 public StorageFolder (string id, string parentId, StorageFolderOptions options)
     : base (id, parentId, options)
 {
     StorageUsed = options.StorageUsed;
 }
Esempio n. 9
0
        protected void CopyToOptions(StorageFolderOptions options)
        {
            base.CopyToOptions(options);

            options.StorageUsed = StorageUsed;
        }
Esempio n. 10
0
 public StorageFolder(string id, string parentId, StorageFolderOptions options)
     : base(id, parentId, options)
 {
     StorageUsed = options.StorageUsed;
 }