public UserSearchForm() { InitializeComponent(); presenter = new UserSearchPresenter(this, new UserSearchModel(), new UserForm.UserForm()); UsersGridControl.DataSource = Data.StoreData.Storage.Users; Domain.Entities.Users.User user = new Domain.Entities.Users.User(); }
public UserSearchForm() { InitializeComponent(); presenter = new UserSearchPresenter(this, new UserSearchModel(), new UserForm.UserForm()); UsersGridControl.DataSource = Data.StoreData.Storage.Users; Domain.Entities.Users.User user = new Domain.Entities.Users.User(); }
static Chatroom GetPV(long MyId, Domain.Entities.Users.User targetUser) { var userInChatroom = targetUser.UserInChatrooms .Where(u => u.Chatroom.ChatroomType == Common.Enums.ChatroomType.PV) .FirstOrDefault (u => u.Chatroom.UserInChatrooms.Any(ui => ui.UserId == MyId)); if (userInChatroom == null) { return(null); } return(userInChatroom.Chatroom); }