예제 #1
0
        private void btn_Send_Click(object sender, EventArgs e)
        {
            if (txt_Message.Text != "")
            {
                string message = txt_Message.Text;
                message += "^";
                message += lbl_me.Text;

                Server.Service1 server = new Server.Service1();

                if (lbl1_Email.Text != "")
                {
                    server.setGroupChatText(lbl1_Email.Text, message);
                }

                if (lbl2_Email.Text != "")
                {
                    server.setGroupChatText(lbl2_Email.Text, message);
                }

                if (lbl3_Email.Text != "")
                {
                    server.setGroupChatText(lbl3_Email.Text, message);
                }

                if (lbl4_Email.Text != "")
                {
                    server.setGroupChatText(lbl4_Email.Text, message);
                }



                msg my = new msg(txt_Message.Text, EnterUser.EnterUserForm.email);
                flowLayoutPanel1.Controls.Add(my);
                flowLayoutPanel1.ScrollControlIntoView(my);
                txt_Message.Clear();
            }
        }