Changeset 11935 for extensions/PiwigoLib/PiwigoWpf/App.xaml.cs
- Timestamp:
- Aug 12, 2011, 4:32:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/PiwigoWpf/App.xaml.cs
r11911 r11935 3 3 using Com.Piwigo.Lib.IService; 4 4 using Com.Piwigo.Wpf.DTO; 5 using Com.Piwigo.Wpf.DTO.Helper; 5 6 6 7 namespace Com.Piwigo.Wpf … … 15 16 { 16 17 18 PwgModelManager.WPF_SynchronizationContext = System.Threading.SynchronizationContext.Current; 19 17 20 PwgServiceProvider.Instance.PwgSetupService.Setup( "Com.Piwigo.Wpf.PiwigoWPF", null, null); 18 21 19 22 // Model object was created in the app.xaml, so we have to link to them 20 23 PwgModelManager.Instance.Session = (PwgSessionWPF)(this.Resources["Session"] as ObjectDataProvider).Data; 21 PwgModelManager.Instance.CategoryList = (Pwg CategoryListWPF)(this.Resources["Categories"] as ObjectDataProvider).Data;24 PwgModelManager.Instance.CategoryList = (PwgRootCategoryListWPF)(this.Resources["Categories"] as ObjectDataProvider).Data; 22 25 PwgModelManager.Instance.ImageList = (PwgImageListWPF)(this.Resources["Images"] as ObjectDataProvider).Data; 26 //PwgCategoryListWPFHelper.InitRootCategory(); 23 27 24 28 PwgModelManager.Instance.Session.ServeurName = global::Com.Piwigo.Wpf.Properties.Settings.Default.ServerNameData;
Note: See TracChangeset
for help on using the changeset viewer.