Пример #1
0
        private async void EntityListButtonBar_OnCreateButtonClick(object sender, RoutedEventArgs e)
        {
            var form = new OrganizacionCreationEditionForm();

            var result = form.ShowDialog();

            if (result.HasValue && result.Value)
            {
                await UpdateOrganizaciones();
            }
        }
Пример #2
0
        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();
            }
        }