예제 #1
0
 public Chat(Winform_Thread_Display winform_thread_display, RichTextBox richTextBox1, RichTextBox richTextBox2, RichTextBox richTextBox3, RichTextBox richTextBox4, ListBox listBox)
 {
     this.winform_thread_display = winform_thread_display;
     this.richTextBox1           = richTextBox1;
     this.richTextBox2           = richTextBox2;
     this.richTextBox3           = richTextBox3;
     this.richTextBox4           = richTextBox4;
     this.listBox = listBox;
 }
예제 #2
0
 public TcpCommonClient(Winform_Thread_Display winformThreadDisplay, RichTextBox richTextBoxMain, RichTextBox richTextBoxCurUser, TextBox textBoxAllRoom, TextBox textBoxCurRoom, TextBox textBox_name)
 {
     this.richTextBoxMain      = richTextBoxMain;
     this.richTextBoxCurUser   = richTextBoxCurUser;
     this.textBoxAllRoom       = textBoxAllRoom;
     this.textBoxCurRoom       = textBoxCurRoom;
     this.textBox_name         = textBox_name;
     this.winformThreadDisplay = winformThreadDisplay;
     user = new User();
 }
예제 #3
0
        public Form1()
        {
            InitializeComponent();

            winformThreadDisplay = new Winform_Thread_Display();
            tcpCommonClient      = new TcpCommonClient(winformThreadDisplay, richTextBoxMain, richTextBoxCurUser, textBoxAllRoom, textBoxCurRoom, textBoxName);
            //chat = new Chat(richTextBoxMain, richTextBoxCurUser, textBoxAllRoom, textBoxCurRoom, textBoxName, winformThreadDisplay, dataFromServer);
            TcpClient tc = tcpCommonClient.InitSocket();
            Thread    t  = new Thread(new ParameterizedThreadStart(tcpCommonClient.RecieveFromServer));

            t.IsBackground = true;
            t.Start(tc);
        }
예제 #4
0
        public Form1()
        {
            InitializeComponent();


            winform_thread_display = new Winform_Thread_Display();
            chat       = new Chat(winform_thread_display, richTextBox1, richTextBox2, richTextBox3, richTextBox4, listBox1);
            tcp_server = new Tcp_Server(winform_thread_display, chat, richTextBox1);

            Thread t = new Thread(tcp_server.InitSocket);

            t.IsBackground = true;
            t.Start();
        }
예제 #5
0
 public Tcp_Server(Winform_Thread_Display winform_thread_display, Chat chat, RichTextBox richTextBox1)
 {
     this.winform_thread_display = winform_thread_display;
     this.chat         = chat;
     this.richTextBox1 = richTextBox1;
 }