private BalancerReference.Request randomizeDifficulty(BalancerReference.Request request) { request.RequestDifficulty = random.Next(10, 40); request.RequestTime = random.Next(1000, 10000); return(request); }
private void btnLand_Click(object sender, EventArgs e) { if (currentRequest.Plane.State == -1) { currentRequest = randomizeDifficulty(currentRequest); currentRequest.RequestType = 2; currentRequest.SenderIP = clientReference.Endpoint.Address.Uri.Authority; clientReference.MakeRequest(currentRequest); } else { MessageBox.Show("Вы не находитесь в воздухе!"); } }