示例#1
0
        public messageForm(TCPServer tCPServer, TCPServer.NewMessageEventArgs newMessageEventArgs)
        {
            InitializeComponent();
            TCPServer           = tCPServer;
            NewMessageEventArgs = newMessageEventArgs;

            labelFrom.Text    = "From: " + NewMessageEventArgs.Alias;
            labelMessage.Text = "Message: " + NewMessageEventArgs.Data;
        }
示例#2
0
 private void TCPServer_NewMessage(object sender, TCPServer.NewMessageEventArgs e)
 {
 }
示例#3
0
 public void SetParam(TCPServer tCPServer, TCPServer.NewMessageEventArgs newMessageEventArgs)
 {
     TCPServer           = tCPServer;
     NewMessageEventArgs = newMessageEventArgs;
 }