Beispiel #1
0
        /// <summary>
        /// 获得应用下的相对路径
        /// </summary>
        public static String GetDirectory(DirectoryKind kind = DirectoryKind.Root)
        {
            switch (kind)
            {
            case DirectoryKind.Root:
                return(_basedir);

            case DirectoryKind.Bin:
                return(_basedir + @"bin\");

            case DirectoryKind.Extension:
                return(_basedir + @"extensions\");

            case DirectoryKind.Setting:
                return(_basedir + @"settings\");

            case DirectoryKind.Config:
                return(_basedir + @"data\");

            case DirectoryKind.Theme:
                return(_basedir + @"data\theme\");

            case DirectoryKind.Cache:
                return(_basedir + @"data\cache\");

            case DirectoryKind.Lang:
                return(_basedir + @"data\lang\");

            default:
                return(null);
            }
        }
Beispiel #2
0
 public FlashDirectory(string name, string path, bool hasSeparatorBefore, DirectoryKind kind)
 {
     Name = name;
     Path = path;
     Kind = kind;
     HasSeparatorBefore = hasSeparatorBefore;
 }
Beispiel #3
0
 public FileVM(AmfFile source, DirectoryKind directoryKind, bool openOnClick)
 {
     Source         = source;
     _openOnClick   = openOnClick;
     _directoryKind = directoryKind;
 }
Beispiel #4
0
 public FlashDirectory(string name, string path, bool hasSeparatorBefore, DirectoryKind kind)
 {
     Name = name;
     Path = path;
     Kind = kind;
     HasSeparatorBefore = hasSeparatorBefore;
 }
Beispiel #5
0
 public FileVM(AmfFile source, DirectoryKind directoryKind, bool openOnClick)
 {
     Source = source;
     _openOnClick = openOnClick;
     _directoryKind = directoryKind;
 }