Пример #1
0
        public AccountViewModel(Account model)
        {
            this.Model = model;

            ViewModelHelper.BindNotifyChanged(model, this, (sender, e) =>
            {
                switch (e.PropertyName)
                {
                    case "ScreenName":
                        this.RaisePropertyChanged(() => this.ScreenName);
                        this.RaisePropertyChanged(() => this.ProfileImageUri);
                        break;
                    case "UserId":
                        this.RaisePropertyChanged(() => this.UserId);
                        break;
                }
            });
        }
Пример #2
0
 public void SetUsingAccount(Account account)
 {
     this.UsingAccount = account.UserId;
 }