3 namespace Pithos.Client.WPF
5 public class Permission:PropertyChangedBase
7 private string _userName;
10 get { return _userName; }
14 NotifyOfPropertyChange(()=>UserName);
27 NotifyOfPropertyChange(()=>Read);
35 get { return _write; }
41 NotifyOfPropertyChange(()=>Write);
45 public Permission(string userName, string permission)
48 Read = (string.Compare(permission, "read", true) == 0);
49 Write= (string.Compare(permission, "write", true) == 0);
53 public string Value { get; private set; }