示例#1
0
 public News(Messages m)
 {
     //All three are needed in order to sort the list
     m.NewsPostedEvent += OnNewsPosted;
     m.NewsEvent += OnNews;
     m.NewsDoneEvent += OnNewsDone;
 }
示例#2
0
        /// <summary>Constructor</summary>
        /// <param name="m"></param>
        /// <param name="chatId"></param>
        public Chat(Messages m, int chatId)
        {
            this.chatId = chatId;
            chatMessages = new List<ChatMessageItem>();
            users = new UserList(m);

            m.ChatTopicEvent += OnTopicChanged;
            m.ChatEvent += OnChatEvent;
            m.ActionChatEvent += OnActionChatEvent;
        }
示例#3
0
        /// <summary>Constructor</summary>
        public UserList(Messages m)
        {
            userList = new List<User>();

            m.StatusChangeEvent += OnStatusChangedMessage;
            m.ClientImageChangedEvent += OnClientImageChangedMessage;
            m.ClientInformationEvent += OnClientInformationMessage;
            m.ClientJoinEvent += OnClientJoinMessage;
            m.UserListEvent += OnUserListMessage;
            m.ClientLeaveEvent += OnClientLeaveMessage;
            m.ClientKickedEvent += OnClientKickedMessage;
            m.ClientBannedEvent += OnClientBannedMessage;
            m.PrivilegesSpecificationEvent += OnPrivilegesSpecificationMessage;
        }
 /// <summary>Constructs a ConnectionManager. Creates a SecureSocket, a Message, and a Commands.</summary>
 public ConnectionManager()
 {
     messages = new Messages();
 }
示例#5
0
 /// <summary>Constructor</summary>
 /// <param name="model"></param>
 public ControllerBase(SharpWiredModel model)
 {
     this.model = model;
     commands = model.ConnectionManager.Commands;
     messages = model.ConnectionManager.Messages;
 }