Exemplo n.º 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;
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 /// <summary>Constructs a ConnectionManager. Creates a SecureSocket, a Message, and a Commands.</summary>
 public ConnectionManager()
 {
     messages = new Messages();
 }
Exemplo n.º 5
0
 /// <summary>Constructor</summary>
 /// <param name="model"></param>
 public ControllerBase(SharpWiredModel model)
 {
     this.model = model;
     commands = model.ConnectionManager.Commands;
     messages = model.ConnectionManager.Messages;
 }