* -----------------------------------------------------------------------
*/
#endregion
+
+using System;
using Caliburn.Micro;
using Pithos.Interfaces;
namespace Pithos.Client.WPF.Preferences
{
/// <summary>
- /// ViewModel wrapper for an account
+ /// ViewModel wrapper for a settings Account object with change notifications
/// </summary>
public class AccountViewModel:PropertyChangedBase
{
_account = account;
}
+ public Uri AccountKey
+ {
+ 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
{
set
{
_account.ApiKey = value;
+ IsExpired = false;
NotifyOfPropertyChange(() => ApiKey);
}
}