Beispiel #1
0
        private void talkButton_Click(object sender, EventArgs e)
        {
            TalkForm tf = new TalkForm(im, sendTo.Text);

            sendTo.Text = "";
            talks.Add(tf);
            tf.Show();
        }
Beispiel #2
0
        virtual protected void OnMessageReceived(IMReceivedEventArgs e)
        {
            //if (MessageReceived != null)
            //{
            if (main.talks.ContainsKey(e.From))
            {
                MessageReceived(this, e);
            }
            else
            {
                TalkForm tf = new TalkForm(this, e.From);
                main.talks.Add(e.From, tf);
                tf.Show();
                OnUserAvail(new IMAvailEventArgs(e.From, true));
                OnMessageReceived(new IMReceivedEventArgs(e.From, e.Message));
                //MessageReceived(this, e);
            }

            //}
        }
 private void talkButton_Click(object sender, EventArgs e)
 {
     TalkForm tf = new TalkForm(im, sendTo.Text);
     sendTo.Text = "";
     talks.Add(tf);
     tf.Show();
 }