private static void InitSocket(string branchCode1) { branchCode = branchCode1; socket = new MRW_Socket(); socket.OpendSocket(); //socket.MrwOpenSocket += InitKeyBoardSend; socket.DataReceived += ReciveDataSocket; // Khi data gửi từ socket }
private void InitSocket(string branchCode1, string ip, string screenCode, string portHost) { socket = new MRW_Socket(branchCode1, ip, screenCode, portHost); socket.DataReceived += ReciveDataSocket; }