Exemplo n.º 1
0
        private async void EntityListButtonBar_OnDeleteButtonClick(object sender, RoutedEventArgs e)
        {
            var result = MessageBoxUtils.Confirmation("Seguro desea eliminar la organización ?");

            if (result == MessageBoxResult.Yes)
            {
                var organizacion = (OrganizacionData)OrganizacionGrid.SelectedItem;

                await ViewModel.Delete(organizacion.Id);

                await UpdateOrganizaciones();
            }
        }
Exemplo n.º 2
0
        private async void EntityListButtonBar_OnDeleteButtonClick(object sender, RoutedEventArgs e)
        {
            var result = MessageBoxUtils.Confirmation("Seguro desea eliminar el sector ?");

            if (result == MessageBoxResult.Yes)
            {
                var sector = (SectorHeaderData)SectorGrid.SelectedItem;

                await ViewModel.Delete(sector.Id);

                await UpdateSectores();
            }
        }
Exemplo n.º 3
0
        private async void ButtonBar_OnDeleteButtonClick(object sender, RoutedEventArgs e)
        {
            var result = MessageBoxUtils.Confirmation("Seguro desea eliminar la localidad ?");

            if (result == MessageBoxResult.Yes)
            {
                var localidad = (LocalidadHeaderData)LocalidadGrid.SelectedItem;

                try
                {
                    await ViewModel.Delete(localidad.Id);
                }
                catch
                {
                }

                await UpdateLocalidades();
            }
        }
Exemplo n.º 4
0
        private async void EntityListButtonBar_OnDeleteButtonClick(object sender, RoutedEventArgs e)
        {
            var result = MessageBoxUtils.Confirmation("Seguro desea eliminar el rubro ?");

            if (result == MessageBoxResult.Yes)
            {
                var rubro = (RubroHeaderData)RubroGrid.SelectedItem;

                try
                {
                    await ViewModel.Delete(rubro.Id);
                }
                catch
                {
                }

                await UpdateRubros();
            }
        }
Exemplo n.º 5
0
        private async void EntityListButtonBar_OnDeleteButtonClick(object sender, RoutedEventArgs e)
        {
            var result = MessageBoxUtils.Confirmation("Seguro desea eliminar el tipo de organización ?");

            if (result == MessageBoxResult.Yes)
            {
                var tipoOrganizacion = (TipoOrganizacionHeaderData)TipoOrganizacionGrid.SelectedItem;

                try
                {
                    await ViewModel.Delete(tipoOrganizacion.Id);
                }
                catch (Exception)
                {
                }


                await UpdateTipoOrganizaciones();
            }
        }