private async void EntityListButtonBar_OnCreateButtonClick(object sender, RoutedEventArgs e) { var form = new OrganizacionCreationEditionForm(); var result = form.ShowDialog(); if (result.HasValue && result.Value) { await UpdateOrganizaciones(); } }
private async void OpenEditionForm() { if (OrganizacionGrid.SelectedItem == null) { return; } var organizacion = (OrganizacionData)OrganizacionGrid.SelectedItem; var form = new OrganizacionCreationEditionForm(organizacion.Id); var result = form.ShowDialog(); if (result.HasValue && result.Value) { await UpdateOrganizaciones(); } }