private bool HandleAuthentification(byte[] packet) { AuthRes res = new AuthRes(); _tcpClient.ToStructure(packet, ref res); _gui.Login(res.result == AuthResult.AUR_OK); if(res.result == AuthResult.AUR_OK) _gui.MainWindow.SetSessionId(Convert.ToString(res.header.sessionHash)); return true; }
private bool HandleAuthentification(byte[] packet) { AuthRes res = new AuthRes(); _tcpClient.ToStructure(packet, ref res); _gui.Login(res.result == AuthResult.AUR_OK); if (res.result == AuthResult.AUR_OK) { _gui.MainWindow.SetSessionId(Convert.ToString(res.header.sessionHash)); } return(true); }