private void Button1_ClickAsync(object sender, EventArgs e) { string value = txtInput.Text; PI pi = new PI(); if (radioButtonPi.Checked) { pi.SendToRabbit(value); SendInfoToLog("Clicked Pi " + value); txtResult.Text = $"PI {pi.GetFromRabbit()}"; } else { pi.SendToRabbit(value); SendInfoToLog("Clicked Prime " + value); txtResult.Text = $"Prime {pi.GetFromRabbit()}"; } }