Fixes for v.0.7.20401
[pithos-ms-client] / trunk / Pithos.Client.WPF / SelectiveSynch / SelectiveSynchViewModel.cs
index 70da404..50a19cb 100644 (file)
@@ -56,16 +56,6 @@ namespace Pithos.Client.WPF.SelectiveSynch
         private const string DirectoryType = "application/directory";
         private readonly IEventAggregator _events ;
 
-        private string _title;
-        public string Title
-        {
-            get { return _title; }
-            set
-            {
-                _title = value;
-                NotifyOfPropertyChange(() => Title);
-            }
-        }
 
         public AccountSettings Account { get; set; }
 
@@ -98,7 +88,7 @@ namespace Pithos.Client.WPF.SelectiveSynch
         {
             Account = account;
             AccountName = account.AccountName;
-            Title = account.AccountName;
+            DisplayName = account.AccountName;
             _monitor = monitor;
             _events = events;
             TaskEx.Run(LoadRootNode);
@@ -123,10 +113,12 @@ namespace Pithos.Client.WPF.SelectiveSynch
                              select new DirectoryRecord
                              {
                                 DisplayName=account.name,
+                                Uri=new Uri(client.StorageUrl,"../"+ account.name),
                                 Directories=(from container in client.ListContainers(account.name)
                                             select new DirectoryRecord
                                                         {
                                                             DisplayName=container.Name,
+                                                            Uri = new Uri(client.StorageUrl, "../" + account.name + "/" + container.Name),
                                                             Directories=(from folder in client.ListObjects(account.name,container.Name,"")
                                                                         where folder.Content_Type==DirectoryType
                                                                         select new DirectoryRecord{DisplayName=folder.Name,ObjectInfo=folder}).ToList()