Revision fe62b7f4 trunk/Pithos.Client.WPF/Preferences/AddAccountViewModel.cs
b/trunk/Pithos.Client.WPF/Preferences/AddAccountViewModel.cs | ||
---|---|---|
42 | 42 |
using System; |
43 | 43 |
using System.Collections.Generic; |
44 | 44 |
using System.ComponentModel.Composition; |
45 |
using System.IO; |
|
46 |
using System.Linq; |
|
45 | 47 |
using System.Threading.Tasks; |
46 | 48 |
using System.Windows; |
47 | 49 |
using System.Windows.Forms; |
... | ... | |
168 | 170 |
} |
169 | 171 |
} |
170 | 172 |
|
173 |
|
|
174 |
private bool _shouldCreateOkeanosFolder; |
|
175 |
public bool ShouldCreateOkeanosFolder |
|
176 |
{ |
|
177 |
get { return _shouldCreateOkeanosFolder; } |
|
178 |
set |
|
179 |
{ |
|
180 |
_shouldCreateOkeanosFolder = value; |
|
181 |
NotifyOfPropertyChange(()=>ShouldCreateOkeanosFolder); |
|
182 |
} |
|
183 |
} |
|
184 |
|
|
171 | 185 |
public void SelectAccount() |
172 | 186 |
{ |
173 | 187 |
using (var dlg = new FolderBrowserDialog{Description=Resources.AddAccountViewModel_SelectAccount_Please_select_a_folder}) |
... | ... | |
179 | 193 |
return; |
180 | 194 |
|
181 | 195 |
AccountPath= dlg.SelectedPath; |
196 |
|
|
197 |
ShouldCreateOkeanosFolder=Directory.EnumerateFileSystemEntries(AccountPath).Any(); |
|
182 | 198 |
} |
183 | 199 |
} |
184 | 200 |
|
Also available in: Unified diff