private void btnPlacesShowDetailsByIdHrefTask_Click(object sender, RoutedEventArgs e) { try { PlacesShowDetailsByIdHrefTask placeTask = new PlacesShowDetailsByIdHrefTask(); placeTask.Id = "276u33dc-10ee9c030bc042e6a6e8e0ad56985be2"; placeTask.Show(); } catch (Exception ex) { MessageBox.Show("Error message: " + ex.Message); } }
private void Button_gridbut_Click(object sender, RoutedEventArgs e) { if (sender == LaunchButton) { try { PlacesShowDetailsByIdHrefTask placeTask = new PlacesShowDetailsByIdHrefTask(); placeTask.Id = idBox.Text; placeTask.Title = StringBox.Text; placeTask.Show(); } catch (Exception erno) { MessageBox.Show("Error message: " + erno.Message); } } }