private void AceptarCambios() { foreach (DataGridViewRow row in DGV_1.Rows) { if (row.Cells[C_NombreRealPiso.Index].Value != null && row.Cells[C_Nivel.Index].Value != null) { string Nivel = row.Cells[C_Nivel.Index].Value.ToString(); string NombreReal = row.Cells[C_NombreRealPiso.Index].Value.ToString(); string Nombre = row.Cells[C_NPiso.Index].Value.ToString(); cPiso Piso = Pisos.Find(x => x.Nombre == Nombre); Piso.Nivel = Nivel; Piso.NombreReal = NombreReal; } } }
private void LV_Stories_SelectedIndexChanged(object sender, EventArgs e) { if (LV_Stories.SelectedItems.Count == 1) { cPiso temp = Pisos.Find(y => y.Nombre == LV_Stories.SelectedItems[0].Text); if (PisoSelect != null && temp.Nombre != PisoSelect.Nombre) { PisoSelect = temp; GL_Control1.Invalidate(); } else if (PisoSelect == null) { PisoSelect = temp; GL_Control1.Invalidate(); } LB_Title.Text = $"Similitud de Nervios | {PisoSelect.Nombre}"; } }
private void CB_Pisos_SelectedIndexChanged(object sender, EventArgs e) { PisoSelect = F_Base.Proyecto.Edificio.Lista_Pisos.Find(x => x.Nombre == CB_Pisos.Text); CrearDataGridViewLabelsActualizar(DGV_PesoTotal); }