Ejemplo n.º 1
0
        private void MessageListBox_MouseMove(object sender, MouseEventArgs e)//Shows the rest of the info about message
        {
            int index = messageListBox.IndexFromPoint(e.Location);

            if (index >= 0)
            {
                messageListBox.SelectedIndex = index;
            }

            if (index != -1 && index < messageListBox.Items.Count)
            {
                MessageServiceReference.Message message = (messageListBox.SelectedItem as MessageServiceReference.Message);
                String text = message.Creator + " " + message.TimeStamp.ToString();
                if (toolTip.GetToolTip(messageListBox) != text)
                {
                    toolTip.SetToolTip(messageListBox, text);
                }
            }
            else
            {
                toolTip.SetToolTip(this.messageListBox, string.Empty);
            }
        }
Ejemplo n.º 2
0
 public void AddMessage(MessageServiceReference.Message message, string clientId)//call back item message recieved
 {
     messageListBox.Items.Add(message);
 }