private void miDesactivar_Click(object sender, EventArgs e) { if (selectedMutualPorPacienteBE == null) { return; } if (MutualList.Exists(p => p.IdMutual.Equals(selectedMutualPorPacienteBE.IdMutual))) { selectedMutualPorPacienteBE.IsActive = false; selectedMutualPorPacienteBE.EntityState = Fwk.Bases.EntityState.Changed; } else { MutualListAux.Remove(selectedMutualPorPacienteBE); gridControl_MutualXPatient.RefreshDataSource(); } }
private void gridView2_DoubleClick(object sender, EventArgs e) { if (selectedMutual == null) { return; } if (MutualListAux.Exists(p => p.IdMutual.Equals(selectedMutual.IdMutual))) { return; } MutualPorPacienteBE mutual = new MutualPorPacienteBE(); mutual.EntityState = Fwk.Bases.EntityState.Added; mutual.IdMutual = selectedMutual.IdMutual; mutual.IsActive = true; mutual.NombreMutual = selectedMutual.Nombre; MutualListAux.Add(mutual); gridControl_MutualXPatient.RefreshDataSource(); }