Пример #1
0
        public void InsertMessage(string channel)
        {
            Ponybox.Message m     = client.GetMessages(channel).Last();
            string[]        items = new string[4] {
                m.GetSender().GetUsername(), m.GetMessage(), Functions.UnixTimeStampToDateTime(m.GetTimestamp()).ToString("yyy-MM-dd hh:mm:ss"), m.GetID().ToString()
            };
            ListViewItem lvi = new ListViewItem(items);

            channels[channel].Invoke((MethodInvoker) delegate
            {
                channels[channel].Items.Add(lvi);
            });
        }