Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace ICQ_0
  12. {
  13. public partial class SE_TEXT : Form
  14. {
  15. public delegate void SendMsgEvent(string msg);
  16. public event SendMsgEvent onSend;
  17.  
  18. public void SendMsg()
  19. {
  20.  
  21. onSend(rtx_message.Text);
  22. }
  23.  
  24. public void RCV_text(string msg)
  25. {
  26. rtx_dialog.Text += msg;
  27. }
  28.  
  29.  
  30. public SE_TEXT()
  31. {
  32. InitializeComponent();
  33. onSend += MyThreads.SendMsgConnnectThread;
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement