Exemple #1
0
		//
		// GET: /Images/

		public ActionResult Index ()
			{
			//ContentResult contentResult1 = new ContentResult();
			//contentResult1.Content = "Fehler - " + System.Web.HttpContext.Current.Application.Identity;
			//return contentResult1;


			ImageFolder viewFolder = new ImageFolder ();
			string msg = "";
			FolderInfo folderInfo = new FolderInfo ();
			if (Configurations.ViewFolders.Count == 0)
				{
				msg = Configurations.Reload ();
				}
			if (Configurations.ViewFolders.Count != 0)
				{
				folderInfo.Folder = new DirectoryInfo (Configurations.ViewFolders [0].LocalFolderPath);
				folderInfo.WebUri = new Uri (Configurations.ViewFolders [0].WebFolderPath);
				folderInfo.ThumbsFolder = "Thumbs/";

				viewFolder.AnalyzeFolder (folderInfo);


				return View ("FolderView", viewFolder);
				}
			ContentResult contentResult = new ContentResult ();
			contentResult.Content = "Fehler - " + msg;
			return contentResult;
			}
Exemple #2
0
		public ActionResult Ordner (string fInfo, string webUri, string thumbFolder)
			{
			ImageFolder viewFolder = new ImageFolder ();

			FolderInfo folderInfo = new FolderInfo ();
			folderInfo.Folder = new DirectoryInfo (fInfo);
			folderInfo.WebUri = new Uri (webUri);
			folderInfo.ThumbsFolder = thumbFolder;

			viewFolder.AnalyzeFolder (folderInfo);


			return View ("FolderView", viewFolder);
			}