public void Handle(UserNameChangedEventArgs args) { var currentUser = CurrentItem; var userName = args.User as IUserName; if (currentUser != null && userName != null && args.User.Index == currentUser.Index) { CurrentItem = args.User; CurrentItem.NotifyOfPropertyChange(() => userName.UserName); } }
public void Handle(UploadableItem item) { var userBase = item.Owner as TLUserBase; if (userBase != null && userBase.IsSelf) { Execute.BeginOnUIThread(() => { IsWorking = false; CurrentItem.NotifyOfPropertyChange(() => CurrentItem.Photo); }); } }