Changeset 12336 for extensions/PiwigoLib/PiwigoWpf
- Timestamp:
- Oct 3, 2011, 5:09:51 PM (13 years ago)
- Location:
- extensions/PiwigoLib/PiwigoWpf
- Files:
-
- 8 added
- 8 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoWpf/App.xaml
r12015 r12336 8 8 <ObjectDataProvider x:Name="ImagesODP" x:Key="Images" ObjectType="{x:Type piwigo:PwgImageListWPF}"/> <!--IsAsynchronous="True"--> 9 9 <ObjectDataProvider x:Name="SessionODP" x:Key="Session" ObjectType="{x:Type piwigo:PwgSessionWPF}" /> 10 <ObjectDataProvider x:Name=" CategoriesODP" x:Key="Categories" ObjectType="{x:Type piwigo:PwgRootCategoryListWPF}"/> <!--IsAsynchronous="True"-->10 <ObjectDataProvider x:Name="AlbumsODP" x:Key="Albums" ObjectType="{x:Type piwigo:PwgRootAlbumListWPF}"/> <!--IsAsynchronous="True"--> 11 11 <ObjectDataProvider x:Name="TagsODP" x:Key="Tags" ObjectType="{x:Type piwigo:PwgTagListWPF}"/> 12 12 <!--IsAsynchronous="True"--> -
extensions/PiwigoLib/PiwigoWpf/App.xaml.cs
r12015 r12336 22 22 // Model object was created in the app.xaml, so we have to link to them 23 23 PwgModelManager.Instance.Session = (PwgSessionWPF)(this.Resources["Session"] as ObjectDataProvider).Data; 24 PwgModelManager.Instance. CategoryList = (PwgRootCategoryListWPF)(this.Resources["Categories"] as ObjectDataProvider).Data;24 PwgModelManager.Instance.AlbumList = (PwgRootAlbumListWPF)(this.Resources["Albums"] as ObjectDataProvider).Data; 25 25 PwgModelManager.Instance.ImageList = (PwgImageListWPF)(this.Resources["Images"] as ObjectDataProvider).Data; 26 26 PwgModelManager.Instance.TagsList = (PwgTagListWPF)(this.Resources["Tags"] as ObjectDataProvider).Data; -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdConnect.cs
r12015 r12336 33 33 } 34 34 35 SendUiInfo("Retriving list of Categoryfrom server...");35 SendUiInfo("Retriving list of Album from server..."); 36 36 PwgSessionWPFHelper.AddPwgSessionInfoToPwgSessionWPF(sess, ref sesWPF); 37 37 38 Pwg CategoryListWPFHelper.InitRootCategory();38 PwgAlbumListWPFHelper.InitRootAlbum(); 39 39 40 List<Pwg Category> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetListOfCategory(null, null, null); //(PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest)41 PwgRoot CategoryWPF aRootCatWPF = PwgModelManager.Instance.RootCategoryList;40 List<PwgAlbum> lstCat = PwgServiceProvider.Instance.PwgAlbumsService.GetListOfAlbum(null, null, null); //(PwgModelManager.Instance.Session.Status == PwgSessionStatusEnum.Guest) 41 PwgRootAlbumWPF aRootCatWPF = PwgModelManager.Instance.RootAlbumList; 42 42 43 Pwg CategoryListWPFHelper.ConvertPwgCategoryListToPwgRootCategoryWPF(lstCat, ref aRootCatWPF);43 PwgAlbumListWPFHelper.ConvertPwgAlbumListToPwgRootAlbumWPF(lstCat, ref aRootCatWPF); 44 44 aRootCatWPF.IsExpanded = true; 45 45 -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdDisconnect.cs
r11935 r12336 26 26 PwgSessionWPFHelper.AddPwgSessionInfoToPwgSessionWPF(sess, ref sesWPF); 27 27 28 SendUiInfo("Removing Image and Category...");28 SendUiInfo("Removing Image and Album ..."); 29 29 if (PwgModelManager.Instance.ImageList != null) 30 30 { … … 32 32 } 33 33 34 if ((PwgModelManager.Instance. CategoryList != null)35 && (PwgModelManager.Instance.Root CategoryList != null))34 if ((PwgModelManager.Instance.AlbumList != null) 35 && (PwgModelManager.Instance.RootAlbumList != null)) 36 36 { 37 PwgModelManager.Instance.Root CategoryList.Childrens.Clear();37 PwgModelManager.Instance.RootAlbumList.Childrens.Clear(); 38 38 } 39 39 40 if (PwgModelManager.Instance. CategoryList != null)40 if (PwgModelManager.Instance.AlbumList != null) 41 41 { 42 PwgModelManager.Instance. CategoryList.Clear();42 PwgModelManager.Instance.AlbumList.Clear(); 43 43 } 44 44 -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdGetImageforTag.cs
r12015 r12336 36 36 tagParam = (PwgTagWPF)parameter; 37 37 SendUiInfo("Setting up cache data..."); 38 ImageCacheManager.Instance.SetCurrent Category("Tag-" + tagParam.Name);38 ImageCacheManager.Instance.SetCurrentAlbum("Tag-" + tagParam.Name); 39 39 40 40 SendUiInfo("Retriving images list from server..."); -
extensions/PiwigoLib/PiwigoWpf/Command/PwgCmdProvider.cs
r12015 r12336 21 21 objICom = PwgCmdDisconnect; 22 22 break; 23 case "PwgCmdGetImagefor Category":24 objICom = PwgCmdGetImagefor Category;23 case "PwgCmdGetImageforAlbum": 24 objICom = PwgCmdGetImageforAlbum; 25 25 break; 26 case "PwgCmdGetSub CategorieforCategory":27 objICom = PwgCmdGetSub CategorieforCategory;26 case "PwgCmdGetSubAlbumforAlbum": 27 objICom = PwgCmdGetSubAlbumforAlbum; 28 28 break; 29 29 case "PwgCmdGetImageforTag": … … 63 63 } 64 64 65 public static AsyncCommand _pwgCmdGetImagefor Category;66 public static AsyncCommand PwgCmdGetImagefor Category65 public static AsyncCommand _pwgCmdGetImageforAlbum; 66 public static AsyncCommand PwgCmdGetImageforAlbum 67 67 { 68 68 get 69 69 { 70 if (_pwgCmdGetImagefor Category== null)70 if (_pwgCmdGetImageforAlbum == null) 71 71 { 72 _pwgCmdGetImagefor Category = new PwgCmdGetImageforCategory();72 _pwgCmdGetImageforAlbum = new PwgCmdGetImageforAlbum(); 73 73 } 74 return _pwgCmdGetImagefor Category;74 return _pwgCmdGetImageforAlbum; 75 75 } 76 76 } 77 77 78 public static AsyncCommand _pwgCmdGetSub CategorieforCategory;79 public static AsyncCommand PwgCmdGetSub CategorieforCategory78 public static AsyncCommand _pwgCmdGetSubAlbumforAlbum; 79 public static AsyncCommand PwgCmdGetSubAlbumforAlbum 80 80 { 81 81 get 82 82 { 83 if (_pwgCmdGetSub CategorieforCategory== null)83 if (_pwgCmdGetSubAlbumforAlbum == null) 84 84 { 85 _pwgCmdGetSub CategorieforCategory = new PwgCmdGetSubCategorieforCategory();85 _pwgCmdGetSubAlbumforAlbum = new PwgCmdGetSubAlbumforAlbum(); 86 86 } 87 return _pwgCmdGetSub CategorieforCategory;87 return _pwgCmdGetSubAlbumforAlbum; 88 88 } 89 89 } -
extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgImageWPFHelper.cs
r11904 r12336 28 28 aPwgImageWPF.Width = aPwgImage.Width; 29 29 30 if (aPwgImageWPF. Categories == null)30 if (aPwgImageWPF.Albums == null) 31 31 { 32 aPwgImageWPF. Categories = new System.Collections.ObjectModel.ObservableCollection<PwgCategoryWPF>();32 aPwgImageWPF.Albums = new System.Collections.ObjectModel.ObservableCollection<PwgAlbumWPF>(); 33 33 } 34 34 else 35 35 { 36 aPwgImageWPF. Categories.Clear();36 aPwgImageWPF.Albums.Clear(); 37 37 } 38 38 39 foreach (Pwg CategoryWPF c in aPwgImageWPF.Categories)39 foreach (PwgAlbumWPF c in aPwgImageWPF.Albums) 40 40 { 41 aPwgImageWPF. Categories.Add(c);41 aPwgImageWPF.Albums.Add(c); 42 42 } 43 43 -
extensions/PiwigoLib/PiwigoWpf/DTO/Helper/PwgTagListWPFHelper.cs
r12015 r12336 9 9 public static class PwgTagListWPFHelper 10 10 { 11 public static void AddPwgTagToList(PwgTag aPwg Category,12 ref PwgTagListWPF aPwg CategoryListWPF)11 public static void AddPwgTagToList(PwgTag aPwgAlbum, 12 ref PwgTagListWPF aPwgAlbumListWPF) 13 13 { 14 if (aPwg Category!= null)14 if (aPwgAlbum != null) 15 15 { 16 if (aPwg CategoryListWPF == null)16 if (aPwgAlbumListWPF == null) 17 17 { 18 aPwg CategoryListWPF = new PwgTagListWPF();18 aPwgAlbumListWPF = new PwgTagListWPF(); 19 19 } 20 20 21 21 PwgTagWPF pwgTag = new PwgTagWPF(); 22 PwgTagWPFHelper.ConvertPwgTagToPwgTagWPF(aPwg Category, ref pwgTag);22 PwgTagWPFHelper.ConvertPwgTagToPwgTagWPF(aPwgAlbum, ref pwgTag); 23 23 24 aPwg CategoryListWPF.Add(pwgTag);24 aPwgAlbumListWPF.Add(pwgTag); 25 25 } 26 26 } -
extensions/PiwigoLib/PiwigoWpf/DTO/LocalPwgImage.cs
r12262 r12336 14 14 { 15 15 //FileInfo highResFile, FileInfo lowResFile, FileInfo thumbFile, String imageName, String imageAuthor, DateTime creationDate, 16 // String authorComment, List<String> lst Categories, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel16 // String authorComment, List<String> lstAlbums, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel 17 17 18 18 private Int32 _id; -
extensions/PiwigoLib/PiwigoWpf/DTO/PwgImageWPF.cs
r11926 r12336 112 112 } 113 113 114 //public List<Pwg CategoryWPF> Categories { get; set; }115 private ObservableCollection<Pwg CategoryWPF> _categories;116 public ObservableCollection<Pwg CategoryWPF> Categories114 //public List<PwgAlbumWPF> Albums { get; set; } 115 private ObservableCollection<PwgAlbumWPF> _Albums; 116 public ObservableCollection<PwgAlbumWPF> Albums 117 117 { 118 set { _ categories = value; OnPropertyChanged("Categories"); }119 get { return _ categories; }118 set { _Albums = value; OnPropertyChanged("Albums"); } 119 get { return _Albums; } 120 120 } 121 121 public event PropertyChangedEventHandler PropertyChanged; -
extensions/PiwigoLib/PiwigoWpf/DTO/PwgModelManager.cs
r12038 r12336 67 67 } 68 68 69 private PwgRoot CategoryListWPF _categoryList = new PwgRootCategoryListWPF();70 public PwgRoot CategoryListWPF CategoryList69 private PwgRootAlbumListWPF _AlbumList = new PwgRootAlbumListWPF(); 70 public PwgRootAlbumListWPF AlbumList 71 71 { 72 set { _ categoryList = value; OnPropertyChanged("CategoryList"); }73 get { return _ categoryList; }72 set { _AlbumList = value; OnPropertyChanged("AlbumList"); } 73 get { return _AlbumList; } 74 74 } 75 75 76 private PwgRoot CategoryWPF _rootCategoryList;77 public PwgRoot CategoryWPF RootCategoryList76 private PwgRootAlbumWPF _rootAlbumList; 77 public PwgRootAlbumWPF RootAlbumList 78 78 { 79 set { _root CategoryList = value; OnPropertyChanged("RootCategoryList"); }80 get { return _root CategoryList; }79 set { _rootAlbumList = value; OnPropertyChanged("RootAlbumList"); } 80 get { return _rootAlbumList; } 81 81 } 82 82 … … 96 96 } 97 97 98 private LocalPwg CategoryListWPF _localCategoryToImport;99 public LocalPwg CategoryListWPF LocalCategoryToImport98 private LocalPwgAlbumListWPF _localAlbumToImport; 99 public LocalPwgAlbumListWPF LocalAlbumToImport 100 100 { 101 set { _local CategoryToImport = value; OnPropertyChanged("LocalCategoryToImport"); }102 get { return _local CategoryToImport; }101 set { _localAlbumToImport = value; OnPropertyChanged("LocalAlbumToImport"); } 102 get { return _localAlbumToImport; } 103 103 } 104 104 -
extensions/PiwigoLib/PiwigoWpf/MainWindow.xaml
r12015 r12336 142 142 Grid.Row="1" 143 143 MinWidth="180" > 144 <TabItem Header=" Categories">145 <TreeView Name="listView Category"146 DataContext="{Binding Source={StaticResource Categories}}"147 ItemsSource="{Binding}" MouseDoubleClick="listView Category_MouseDoubleClick"148 HorizontalAlignment="Left" PreviewMouseDown="listView Category_PreviewMouseDown">144 <TabItem Header="Albums"> 145 <TreeView Name="listViewAlbum" 146 DataContext="{Binding Source={StaticResource Albums}}" 147 ItemsSource="{Binding}" MouseDoubleClick="listViewAlbum_MouseDoubleClick" 148 HorizontalAlignment="Left" PreviewMouseDown="listViewAlbum_PreviewMouseDown"> 149 149 <TreeView.ItemContainerStyle> 150 150 <!-- … … 188 188 <TreeView.Resources> 189 189 <HierarchicalDataTemplate 190 DataType="{x:Type pwgdto:PwgTree CategoryWPF}"190 DataType="{x:Type pwgdto:PwgTreeAlbumWPF}" 191 191 ItemsSource="{Binding Childrens}" 192 192 > … … 200 200 </HierarchicalDataTemplate> 201 201 <HierarchicalDataTemplate 202 DataType="{x:Type pwgdto:Pwg CategoryWPF}"202 DataType="{x:Type pwgdto:PwgAlbumWPF}" 203 203 ItemsSource="{Binding Childrens}" 204 204 > … … 213 213 <TextBlock Text="{Binding Path=ImagesCount}"/> 214 214 <TextBlock Text=" images inside"/> 215 <TextBlock Text="{Binding Path=Sub CategoriesCount}"/>216 <TextBlock Text=" categories inside"/>215 <TextBlock Text="{Binding Path=SubAlbumsCount}"/> 216 <TextBlock Text=" Albums inside"/> 217 217 </UniformGrid> 218 218 </StackPanel.ToolTip> -
extensions/PiwigoLib/PiwigoWpf/MainWindow.xaml.cs
r12015 r12336 30 30 } 31 31 32 private void listView Category_MouseDoubleClick(object sender, MouseButtonEventArgs e)32 private void listViewAlbum_MouseDoubleClick(object sender, MouseButtonEventArgs e) 33 33 { 34 AppHelper.ExecuteCommand<PwgCmdGetImagefor Category>(listViewCategory.SelectedValue);34 AppHelper.ExecuteCommand<PwgCmdGetImageforAlbum>(listViewAlbum.SelectedValue); 35 35 } 36 36 37 37 private void listViewImage_SelectionChanged(object sender, SelectionChangedEventArgs e) 38 38 { 39 if (PwgCmdSelectImageIn Category.Command.CanExecute(sender))39 if (PwgCmdSelectImageInAlbum.Command.CanExecute(sender)) 40 40 { 41 PwgCmdSelectImageIn Category.Command.Execute(sender);41 PwgCmdSelectImageInAlbum.Command.Execute(sender); 42 42 } 43 43 } 44 44 45 private void listView Category_PreviewMouseDown(object sender, MouseButtonEventArgs e)45 private void listViewAlbum_PreviewMouseDown(object sender, MouseButtonEventArgs e) 46 46 { 47 47 e.Handled = false; … … 53 53 if (dep != null) 54 54 { 55 if (((TreeViewItem)dep).DataContext is Pwg CategoryWPF)55 if (((TreeViewItem)dep).DataContext is PwgAlbumWPF) 56 56 { 57 Pwg CategoryWPF aCat = (PwgCategoryWPF)((TreeViewItem)dep).DataContext;57 PwgAlbumWPF aCat = (PwgAlbumWPF)((TreeViewItem)dep).DataContext; 58 58 59 59 if ((e.ChangedButton == MouseButton.Left) && (e.ClickCount == 1)) … … 62 62 if (aCat.Childrens == null) 63 63 { 64 AppHelper.ExecuteCommand<PwgCmdGetSub CategorieforCategory>(aCat);64 AppHelper.ExecuteCommand<PwgCmdGetSubAlbumforAlbum>(aCat); 65 65 } 66 66 } -
extensions/PiwigoLib/PiwigoWpf/PiwigoWpf.csproj
r12038 r12336 76 76 </ApplicationDefinition> 77 77 <Compile Include="Command\PwgCmdGetImageforTag.cs" /> 78 <Compile Include="Command\PwgCmdGetSub CategorieforCategory.cs" />79 <Compile Include="Command\PwgCmdSelectImageIn Category.cs" />78 <Compile Include="Command\PwgCmdGetSubAlbumforAlbum.cs" /> 79 <Compile Include="Command\PwgCmdSelectImageInAlbum.cs" /> 80 80 <Compile Include="Command\DelegateCommand.cs" /> 81 81 <Compile Include="Command\PwgCmdDeleteTrace.cs" /> 82 82 <Compile Include="Command\PwgCmdDisconnect.cs" /> 83 83 <Compile Include="Command\PwgCmdEventsConsumer.cs" /> 84 <Compile Include="Command\PwgCmdGetImagefor Category.cs" />84 <Compile Include="Command\PwgCmdGetImageforAlbum.cs" /> 85 85 <Compile Include="Command\PwgCmdProvider.cs" /> 86 86 <Compile Include="Command\PwgCmdConnect.cs" /> … … 91 91 <Compile Include="DTO\Helper\PwgImageListWPFHelper.cs" /> 92 92 <Compile Include="DTO\Helper\PwgImageWPFHelper.cs" /> 93 <Compile Include="DTO\Helper\Pwg CategoryWPFHelper.cs" />94 <Compile Include="DTO\Helper\Pwg CategoryListWPFHelper.cs" />93 <Compile Include="DTO\Helper\PwgAlbumWPFHelper.cs" /> 94 <Compile Include="DTO\Helper\PwgAlbumListWPFHelper.cs" /> 95 95 <Compile Include="DTO\Helper\PwgSessionWPFHelper.cs" /> 96 <Compile Include="DTO\LocalPwg Category.cs" />96 <Compile Include="DTO\LocalPwgAlbum.cs" /> 97 97 <Compile Include="DTO\LocalPwgImage.cs" /> 98 98 <Compile Include="DTO\PwgModelManager.cs" /> … … 117 117 <Compile Include="DTO\PwgTagListWPF.cs" /> 118 118 <Compile Include="DTO\PwgImageListWPF.cs" /> 119 <Compile Include="DTO\Pwg CategoryListWPF.cs" />120 <Compile Include="DTO\Pwg CategoryWPF.cs" />119 <Compile Include="DTO\PwgAlbumListWPF.cs" /> 120 <Compile Include="DTO\PwgTreeAlbumWPF.cs" /> 121 121 <Compile Include="DTO\PwgImageWPF.cs" /> 122 122 <Compile Include="DTO\PwgSessionWPF.cs" /> -
extensions/PiwigoLib/PiwigoWpf/Services/ImageCacheManager.cs
r11926 r12336 64 64 #region DTO 65 65 // local DTO 66 internal class CategoryDictionnaryItem66 internal class AlbumDictionnaryItem 67 67 { 68 68 internal DirectoryInfo BasePath; 69 internal String CategorieId;69 internal String AlbumId; 70 70 }; 71 71 72 internal class CategoryDictionnary : SortedDictionary<String, CategoryDictionnaryItem> { };72 internal class AlbumDictionnary : SortedDictionary<String, AlbumDictionnaryItem> { }; 73 73 74 74 internal class ServerDictionnaryItem 75 75 { 76 76 internal DirectoryInfo BasePath; 77 internal CategoryDictionnary Categories;77 internal AlbumDictionnary Albums; 78 78 internal Uri ServeurUrl; 79 79 }; … … 86 86 internal ServerDictionnary _aServerDictionnary; 87 87 internal ServerDictionnaryItem _currentServer; 88 internal CategoryDictionnaryItem _currentCategory;88 internal AlbumDictionnaryItem _currentAlbum; 89 89 90 90 #endregion DTO … … 100 100 } 101 101 102 static private String Build CategoryDirCache(ServerDictionnaryItem server, String CatgeoryId)103 { 104 String CategoryDirCache = String.Empty;102 static private String BuildAlbumDirCache(ServerDictionnaryItem server, String CatgeoryId) 103 { 104 String AlbumDirCache = String.Empty; 105 105 if (server != null) 106 106 { 107 CategoryDirCache = Path.Combine(server.BasePath.FullName, CatgeoryId.Replace("/", "_"));107 AlbumDirCache = Path.Combine(server.BasePath.FullName, CatgeoryId.Replace("/", "_")); 108 108 } 109 109 else 110 110 { 111 throw new ApplicationException ("Current server not set before using category");112 } 113 114 return CategoryDirCache;111 throw new ApplicationException ("Current server not set before using Album"); 112 } 113 114 return AlbumDirCache; 115 115 } 116 116 … … 147 147 public void UnsetCurrentServer() 148 148 { 149 _current Category= null;149 _currentAlbum = null; 150 150 _currentServer = null; 151 151 } … … 171 171 server.ServeurUrl = new Uri(serveurUri); 172 172 server.BasePath = new DirectoryInfo(currentserverDir); 173 server. Categories = new CategoryDictionnary();173 server.Albums = new AlbumDictionnary(); 174 174 _aServerDictionnary.Add(serveurUri, server); 175 175 _currentServer = server; … … 180 180 //Create it 181 181 Directory.CreateDirectory(currentserverDir); 182 _currentServer. Categories.Clear();183 } 184 } 185 } 186 187 public void SetCurrent Category(String CategorieId)182 _currentServer.Albums.Clear(); 183 } 184 } 185 } 186 187 public void SetCurrentAlbum(String AlbumId) 188 188 { 189 189 if (_currentServer != null) … … 191 191 lock (_lock) 192 192 { 193 String currents CategoryDir = BuildCategoryDirCache(_currentServer, CategorieId);194 if (_currentServer. Categories.ContainsKey(CategorieId))195 { 196 _current Category = _currentServer.Categories[CategorieId];193 String currentsAlbumDir = BuildAlbumDirCache(_currentServer, AlbumId); 194 if (_currentServer.Albums.ContainsKey(AlbumId)) 195 { 196 _currentAlbum = _currentServer.Albums[AlbumId]; 197 197 } 198 198 else 199 199 { 200 CategoryDictionnaryItem category = new CategoryDictionnaryItem();201 category.BasePath = new DirectoryInfo(currentsCategoryDir);202 category.CategorieId = CategorieId;203 _currentServer. Categories.Add(CategorieId, category);204 _current Category = category;205 } 206 207 if (!Directory.Exists(currents CategoryDir))200 AlbumDictionnaryItem Album = new AlbumDictionnaryItem(); 201 Album.BasePath = new DirectoryInfo(currentsAlbumDir); 202 Album.AlbumId = AlbumId; 203 _currentServer.Albums.Add(AlbumId, Album); 204 _currentAlbum = Album; 205 } 206 207 if (!Directory.Exists(currentsAlbumDir)) 208 208 { 209 209 //Create it 210 Directory.CreateDirectory(currents CategoryDir);210 Directory.CreateDirectory(currentsAlbumDir); 211 211 } 212 212 } … … 214 214 else 215 215 { 216 throw new ApplicationException("Current server not set before using category");216 throw new ApplicationException("Current server not set before using Album"); 217 217 } 218 218 } … … 226 226 } 227 227 228 if (_current Category!= null)229 { 230 String localDir = Path.Combine(_current Category.BasePath.FullName, strImageType);228 if (_currentAlbum != null) 229 { 230 String localDir = Path.Combine(_currentAlbum.BasePath.FullName, strImageType); 231 231 if (!Directory.Exists(localDir)) 232 232 { … … 277 277 else 278 278 { 279 throw new ApplicationException("Current categorynot set before using image cache.");279 throw new ApplicationException("Current Album not set before using image cache."); 280 280 } 281 281 }
Note: See TracChangeset
for help on using the changeset viewer.