private void buttonResult_Click(object sender, EventArgs e) { var host = new HobbyClient(); var kilos = textBoxKilo.Text; var gender = textBoxGender.Text; var input = kilos + ";" + gender; labelResult.Text = host.AmIStrong(input); }
static void Main(string[] args) { Console.WriteLine("Fyll i hur mycket du tar i bänkpress (kg)"); var kilo = Console.ReadLine(); Console.WriteLine("Är du kvinna eller man?"); var gender = Console.ReadLine(); var input = kilo + ";" + gender; var host = new HobbyClient(); Console.WriteLine(host.AmIStrong(input)); Console.ReadLine(); }