internal BackgroundStorageDirectory(BackgroundStorage storage, string path)
 {
     this.storage = storage;
     int i = path.Substring(0, path.Length - 1).LastIndexOf('/');
     if (i < 0)
     {
         this.parentPath = null;
         this.Name = String.Empty;
     }
     else
     {
         this.parentPath = path.Substring(0, i + 1);
         this.Name = path.Substring(i + 1, path.Length - (i + 2));
     }
 }
        internal BackgroundStorageDirectory(BackgroundStorage storage, string path)
        {
            this.storage = storage;
            int i = path.Substring(0, path.Length - 1).LastIndexOf('/');

            if (i < 0)
            {
                this.parentPath = null;
                this.Name       = String.Empty;
            }
            else
            {
                this.parentPath = path.Substring(0, i + 1);
                this.Name       = path.Substring(i + 1, path.Length - (i + 2));
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Enables redirecting of all request over local server using the given password.
 /// </summary>
 /// <param name="password">The password.</param>
 public static void EnableRedirect(SongStorage songs, BackgroundStorage backgrounds)
 {
     redirectSongStorage = songs;
     redirectBackgroundStorage = backgrounds;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Disables the redirect.
 /// </summary>
 public static void DisableRedirect()
 {
     redirectSongStorage = null;
     redirectBackgroundStorage = null;
 }
 internal BackgroundStorageEntry(BackgroundStorage storage, BackgroundStorageDirectory parent, string name)
 {
     this.storage = storage;
     this.Name    = name;
     this.Parent  = parent;
 }
Ejemplo n.º 6
0
 internal BackgroundStorageEntry(BackgroundStorage storage, BackgroundStorageDirectory parent, string name)
 {
     this.storage = storage;
     this.Name = name;
     this.Parent = parent;
 }