private async void ButtonRead_Click(object sender, RoutedEventArgs e) { Kukavarproxy.Result result = new Kukavarproxy.Result(); result = await kuka.ReadVariable(TextReadInput.Text); if (result.Succeeded) { TextReadOutput.Text = result.Data; } else { TextReadOutput.Text = "Error: " + result.ErrorMessage; } }
private async void ButtonConnect_Click(object sender, RoutedEventArgs e) { Kukavarproxy.Result result = new Kukavarproxy.Result(); string IP = TextIp.Text; TextStatus.Text = "Connecting"; result = await kuka.Connect("7000", TextIp.Text); if (IP == TextIp.Text) { if (result.Succeeded) { TextStatus.Text = "Connected"; } else { TextStatus.Text = "Error: " + result.ErrorMessage; } } }