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();
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
            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);
            }