Exemplo n.º 1
0
        private void AddToChannel(string channelName, ChatEntry entry)
        {
            if (!_log.ContainsKey(channelName))
            {
                _log.Add(channelName, new List<ChatEntry>());
            }

            _log[channelName].Add(entry);
        }
Exemplo n.º 2
0
 public void Add(string channelName, string nickName, string chatLine)
 {
     var entry = new ChatEntry {NickName = nickName, Text = chatLine, Time = DateTime.Now};
     AddToChannel(channelName, entry);
 }