Revision 5a99309c

b/trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs
381 381
                if (Directory.Exists(oldPath))
382 382
                {
383 383
                    //If it does, do the move
384
                    Directory.Move(oldPath, newPath);
384

  
385
                    //Now Create all of the directories
386
                    foreach (string dirPath in Directory.EnumerateDirectories(oldPath, "*",
387
                                                           SearchOption.AllDirectories))
388
                        Directory.CreateDirectory(dirPath.Replace(oldPath, newPath));
389

  
390
                    //Copy all the files
391
                    foreach (string newFilePath in Directory.EnumerateFiles(oldPath, "*.*",
392
                                                                            SearchOption.AllDirectories))
393
                        File.Copy(newFilePath, newFilePath.Replace(oldPath, newPath));
394

  
395
                    Directory.Delete(oldPath, true);
396

  
385 397
                    //We also need to change the path of the existing file states
386 398
                    if (monitor != null)
387 399
                        monitor.MoveFileStates(oldPath, newPath);
b/trunk/Pithos.Client.WPF/Services/StatusService.cs
16 16
    /// <summary>
17 17
    /// TODO: Update summary.
18 18
    /// </summary>
19
    [ServiceBehavior(IncludeExceptionDetailInFaults = true)]
19
    [ServiceBehavior(UseSynchronizationContext=false, IncludeExceptionDetailInFaults = true)]
20 20
    [Export]
21 21
    public class StatusService : IStatusService,ISettingsService, ICommandsService
22 22
    {
b/trunk/Pithos.Client.WPF/ShellView.xaml
27 27
                        >
28 28
            <tb:TaskbarIcon.ContextMenu>
29 29
                <ContextMenu x:Name="TaskbarMenu" >
30
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" cal:Message.Attach="OpenPithosFolder" FontWeight="Bold" />
30
                    <MenuItem Header="Open PITHOS Folder" x:Name="OpenPithosFolder" ItemsSource="{Binding Accounts}" >
31
                        <MenuItem.ItemTemplate>
32
                            <DataTemplate>
33
                                <TextBlock x:Name="AccountLink" Text="{Binding Path=UserName}" cal:Message.Attach="[Event MouseLeftButtonUp]=[Action OpenPithosFolder($dataContext)]" 
34
                                           cal:Action.TargetWithoutContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem, AncestorLevel=2}, Path=DataContext}" />
35
                            </DataTemplate>
36
                        </MenuItem.ItemTemplate>                        
37
                        </MenuItem> 
31 38
                    <MenuItem Header="Go to Account Site" x:Name="GoToSiteMenu" ItemsSource="{Binding Accounts}" >
32 39
                        <MenuItem.ItemTemplate>
33 40
                            <DataTemplate>
b/trunk/Pithos.Client.WPF/ShellViewModel.cs
210 210

  
211 211
        public void OpenPithosFolder()
212 212
        {
213
            Process.Start(Settings.PithosPath);
213
            var account = Settings.Accounts.FirstOrDefault(acc => acc.IsActive);
214
            if (account == null)
215
                return;
216
            Process.Start(account.RootPath);
217
        }
218

  
219
        public void OpenPithosFolder(AccountInfo account)
220
        {
221
            Process.Start(account.AccountPath);
214 222
        }
215 223

  
216 224
        public void GoToSite()
......
479 487

  
480 488
            //// Add a mex endpoint
481 489
            var smb = new ServiceMetadataBehavior
482
            {
490
            { 
483 491
                HttpGetEnabled = true,
484 492
                HttpGetUrl = new Uri("http://localhost:30000/pithos/mex")
485 493
            };

Also available in: Unified diff