Ejemplo n.º 1
0
        string ISystemBackend.GetNamedPath(NamedDirectory dir)
        {
            string path;

            switch (dir)
            {
            default: path = null; break;

            case NamedDirectory.Current: path = System.IO.Directory.GetCurrentDirectory(); break;

            case NamedDirectory.ApplicationData: path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); break;

            case NamedDirectory.MyDocuments: path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); break;

            case NamedDirectory.MyMusic: path = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic); break;

            case NamedDirectory.MyPictures: path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); break;

            // Not supported on Android
            case NamedDirectory.SavedGames: path = null; break;
            }

            if (path == null)
            {
                return(null);
            }

            return(this.fileSystem.GetDualityPathFormat(path));
        }
Ejemplo n.º 2
0
		string ISystemBackend.GetNamedPath(NamedDirectory dir)
		{
			switch (dir)
			{
				default:                             return null;
				case NamedDirectory.Current:         return System.IO.Directory.GetCurrentDirectory();
				case NamedDirectory.ApplicationData: return Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
				case NamedDirectory.MyDocuments:     return Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
				case NamedDirectory.MyMusic:         return Environment.GetFolderPath(Environment.SpecialFolder.MyMusic);
				case NamedDirectory.MyPictures:      return Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
			}
		}
Ejemplo n.º 3
0
 string ISystemBackend.GetNamedPath(NamedDirectory dir)
 {
     string path;
     switch (dir)
     {
         default:                             path = null; break;
         case NamedDirectory.Current:         path = System.IO.Directory.GetCurrentDirectory(); break;
         case NamedDirectory.ApplicationData: path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); break;
         case NamedDirectory.MyDocuments:     path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); break;
         case NamedDirectory.MyMusic:         path = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic); break;
         case NamedDirectory.MyPictures:      path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); break;
     }
     return this.fileSystem.GetDualityPathFormat(path);
 }
        string ISystemBackend.GetNamedPath(NamedDirectory dir)
        {
            switch (dir)
            {
            default:                             return(null);

            case NamedDirectory.Current:         return(System.IO.Directory.GetCurrentDirectory());

            case NamedDirectory.ApplicationData: return(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));

            case NamedDirectory.MyDocuments:     return(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));

            case NamedDirectory.MyMusic:         return(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));

            case NamedDirectory.MyPictures:      return(Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
            }
        }
        string ISystemBackend.GetNamedPath(NamedDirectory dir)
        {
            string path;

            switch (dir)
            {
            default: path = null; break;

            case NamedDirectory.Current: path = System.IO.Directory.GetCurrentDirectory(); break;

            case NamedDirectory.ApplicationData: path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); break;

            case NamedDirectory.MyDocuments: path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); break;

            case NamedDirectory.MyMusic: path = Environment.GetFolderPath(Environment.SpecialFolder.MyMusic); break;

            case NamedDirectory.MyPictures: path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); break;
            }
            return(this.fileSystem.GetCoheePathFormat(path));
        }
Ejemplo n.º 6
0
 string ISystemBackend.GetNamedPath(NamedDirectory dir)
 {
     return(string.Empty);
 }
Ejemplo n.º 7
0
		string ISystemBackend.GetNamedPath(NamedDirectory dir)
		{
			return string.Empty;
		}
Ejemplo n.º 8
0
 string ISystemBackend.GetNamedPath(NamedDirectory dir)
 {
     return(null);
 }