From eb81e47db741145798ec673bcf5511f2a8dbbdcb Mon Sep 17 00:00:00 2001 From: pkanavos Date: Thu, 24 May 2012 22:43:10 +0300 Subject: [PATCH] Moved the "Selective Sync Enabled" to the main preferences page --- trunk/Pithos.Client.WPF/Preferences/AccountViewModel.cs | 10 ++++++++++ trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml | 11 ++++++----- trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs | 7 +++++-- .../SelectiveSynch/SelectiveSynchView.xaml | 6 ++---- .../SelectiveSynch/SelectiveSynchViewModel.cs | 8 +++++--- 5 files changed, 28 insertions(+), 14 deletions(-) diff --git a/trunk/Pithos.Client.WPF/Preferences/AccountViewModel.cs b/trunk/Pithos.Client.WPF/Preferences/AccountViewModel.cs index 212bef0..7abeabd 100644 --- a/trunk/Pithos.Client.WPF/Preferences/AccountViewModel.cs +++ b/trunk/Pithos.Client.WPF/Preferences/AccountViewModel.cs @@ -69,6 +69,16 @@ namespace Pithos.Client.WPF.Preferences get { return new Uri(new Uri(_account.ServerUrl) , _account.AccountName); } } + public bool SelectiveSyncEnabled + { + get { return _account.SelectiveSyncEnabled; } + set + { + _account.SelectiveSyncEnabled = value; + NotifyOfPropertyChange(() => SelectiveSyncEnabled); + } + } + public string AccountName { get { diff --git a/trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml b/trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml index 63dee68..f36e707 100644 --- a/trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml +++ b/trunk/Pithos.Client.WPF/Preferences/PreferencesView.xaml @@ -92,7 +92,7 @@ No account is selected. Please select an account or add a new one. - + @@ -131,12 +131,13 @@ - -