예제 #1
0
 public MessageFormViewModel(Message Message)
 {
     channelRepository = new ChannelRepository();
     this.Message = Message;
     ProfileImage = getGravatar(channelRepository.userDB.getUser(Message.UserId).aspnet_Membership.Email);
     Username = channelRepository.userDB.getUser(Message.UserId).UserName;
     Attachment = null;
 }
예제 #2
0
 public MessageSendDM(Message Message)
 {
     channelRepository = new ChannelRepository();
     this.Message = Message;
     if (Message.Receiver.HasValue)
     {
         Receivers = new SelectList(channelRepository.userDB.getAllUsers(), "UserID", "UserName", (Guid) Message.Receiver);
     }
     else
     {
         Receivers = new SelectList(channelRepository.userDB.getAllUsers(), "UserID", "UserName");
     }
 }
예제 #3
0
 public DMController()
 {
     chRep = new ChannelRepository();
     psRep = new PswinRepository();
 }
예제 #4
0
 public UserRepository(ChannelRepository owner, ChannelDataClassesDataContext db)
 {
     this.owner = owner;
     this.db = db;
 }
 public ChannelController()
 {
     chRep = new ChannelRepository();
 }
예제 #6
0
 public PswinRepository()
 {
      chRep = new ChannelRepository();
 }