private EditarProyecto editarElemento = null; // update element window // constructor public Proyecto(Estrategia estrategia) : base() { Index = 4; SelectedIndex = -1; OidField = "OBJECTID"; ElementName = "Proyecto"; ElementType = "la hoja de excel o la tabla de geodatabase"; FilterType = ItemFilters.tables_all; Service = $"{serviceURL}/{Index}"; ShowProWindow = new RelayCommand(() => ShowWindow(), () => true); ShowProWindowUpdateCommand = new RelayCommand(() => ShowProWindowUpdate(), () => true); UnselectRowCommand = new RelayCommand(() => UnselectRow(), () => true); AddNewRowCommand = new RelayCommand(() => { AddNewRow(AddRow); crearElemento?.Close(); }, () => true); UpdateSelectedRowCommand = new RelayCommand(() => { UpdateSelectedRow(Objectid, UpdateRow); editarElemento?.Close(); }, () => true); EliminateSelectedRow = new RelayCommand(() => EliminateRow(), () => true); // Relationship commands SelectionCommand = new RelayCommand(() => _estrategia.OnElementoSelecionado(), () => true); Columns = new List <string> { "OBJECTID", "ID_estrategia", "ID_proyecto", "nombre", "descripcion", "color", "fondo", "icono", "fecha_linea_base", "fecha_seguimiento1", "fecha_seguimiento2", "fecha_cierre", "cierre" }; // Parent relationships _estrategia = estrategia; }