Пример #1
0
 public void AttachProfileScreenToUserGroup(UserProfileLoadedEvent e, RemoteUserNode remoteUser, [JoinAll] ProfileScreenNode screen, [JoinByScreen] ProfileScreenContextNode profileScreenContext)
 {
     if (remoteUser.Entity.Id.Equals(profileScreenContext.profileScreenContext.UserId))
     {
         remoteUser.userGroup.Attach(screen.Entity);
     }
 }
 public void AttachProfileScreenToUserGroup(UserProfileLoadedEvent e, RemoteUserNode remoteUser, [JoinAll] SingleNode <AddFriendDialogComponent> dialog, [JoinByScreen] SearchUserInputFieldNode searchField, [JoinByScreen] SingleNode <SearchUserButtonComponent> button, [JoinAll] SingleNode <SelfUserComponent> selfUser)
 {
     base.ScheduleEvent(new RequestFriendEvent(remoteUser.Entity), selfUser);
     base.ScheduleEvent <FriendRequestSentEvent>(selfUser);
     dialog.component.Hide();
 }