private void Button_Click_1(object sender, RoutedEventArgs e) { var propertyDetails = new PropertyDetails(); DataRowView dr = (DataRowView)ggrrr.SelectedItem; Int32 id = Int32.Parse(dr["ID"].ToString()); getDetailsForPopup(propertyDetails, id); propertyDetails.ShowDialog(); }
private async void getDetailsForPopup(PropertyDetails popup, Int32 id) { DataTable property = XmlStringToDataTable(await cl.GetEstateByIdAsync(id)); popup.setDetails(property); }