private void Client_OnResponse(object sender, OnReceiveMessageClientEventArgs e) { MedicalProblems medicalproblem = e.Medical; /* * Here I will implement things * Update GUI * Add shit * */ }
private void ClientTCP_OnResponse(object sender, OnReceiveMessageClientEventArgs e) { SetGif(false, true); SetResponseInterface((e.Medical.Chanse_To_Have * 100).ToString(), (e.Medical.Chanse_To_Have_Nothing * 100).ToString()); ConnectionClass.ClientTCP.OnResponse -= ClientTCP_OnResponse; }