예제 #1
0
        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);
            }
        }
예제 #2
0
        public void Handle(UploadableItem item)
        {
            var userBase = item.Owner as TLUserBase;

            if (userBase != null && userBase.IsSelf)
            {
                Execute.BeginOnUIThread(() =>
                {
                    IsWorking = false;
                    CurrentItem.NotifyOfPropertyChange(() => CurrentItem.Photo);
                });
            }
        }