Revision 4147814e trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs
b/trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs | ||
---|---|---|
42 | 42 |
using System; |
43 | 43 |
using System.Collections.Generic; |
44 | 44 |
using System.Collections.ObjectModel; |
45 |
using System.Collections.Specialized; |
|
46 |
using System.IO; |
|
47 | 45 |
using System.Linq; |
48 |
using System.Text; |
|
49 | 46 |
using System.Threading.Tasks; |
50 | 47 |
using Caliburn.Micro; |
51 | 48 |
using Pithos.Client.WPF.Properties; |
52 | 49 |
using Pithos.Core; |
53 |
using Pithos.Core.Agents; |
|
54 | 50 |
using Pithos.Interfaces; |
55 |
using Pithos.Network; |
|
56 | 51 |
|
57 | 52 |
namespace Pithos.Client.WPF.SelectiveSynch |
58 | 53 |
{ |
59 | 54 |
class SelectiveSynchViewModel:Screen |
60 | 55 |
{ |
61 | 56 |
private const string DirectoryType = "application/directory"; |
62 |
private IEventAggregator _events ; |
|
57 |
private readonly IEventAggregator _events ;
|
|
63 | 58 |
|
64 | 59 |
private string _title; |
65 | 60 |
public string Title |
... | ... | |
81 | 76 |
} |
82 | 77 |
|
83 | 78 |
private ObservableCollection<ObjectInfo> _checks; |
84 |
private PithosMonitor _monitor; |
|
79 |
private readonly PithosMonitor _monitor;
|
|
85 | 80 |
private bool _isBusy=true; |
86 | 81 |
|
87 | 82 |
public ObservableCollection<ObjectInfo> Checks |
... | ... | |
124 | 119 |
}; |
125 | 120 |
var ownFolders = dirs.ToList(); |
126 | 121 |
|
127 |
var accounts = client.ListSharingAccounts(); |
|
128 |
|
|
129 | 122 |
var accountNodes=from account in client.ListSharingAccounts() |
130 | 123 |
select new DirectoryRecord |
131 | 124 |
{ |
... | ... | |
155 | 148 |
|
156 | 149 |
Execute.OnUIThread(() => |
157 | 150 |
{ |
158 |
this.RootNodes.Add(rootItem);
|
|
159 |
this.RootNodes.Add(othersNode);
|
|
151 |
RootNodes.Add(rootItem); |
|
152 |
RootNodes.Add(othersNode); |
|
160 | 153 |
}); |
161 | 154 |
|
162 | 155 |
SetInitialSelections(Account); |
Also available in: Unified diff