private void DesactiverButton() { mDGV_CircuitActive = false; mDGV_MonumentActive = false; BTN_SupprimerMonument.Hide(); BTN_ModifierCircuit.Hide(); FBTN_More.Enabled = false; }
private void FBTN_Fermer_Click(object sender, EventArgs e) { DGV_Circuit.Hide(); BTN_ModifierCircuit.Hide(); BTN_SupprimerMonument.Hide(); DGV_Monuments.Hide(); FBTN_More.Enabled = false; }
private void DGV_Monument_CellClick(object sender, DataGridViewCellEventArgs e) { if (DGV_Monuments.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null) { if (mDGV_MonumentActive) { t = e; BTN_SupprimerMonument.Show(); BTN_SupprimerMonument.Location = new Point(0, 230); FBTN_More.Enabled = true; mHistoire = DGV_Monuments.Rows[e.RowIndex].Cells[3].Value.ToString(); mNomMonument = DGV_Monuments.Rows[e.RowIndex].Cells[0].Value.ToString(); string date = DGV_Monuments.Rows[e.RowIndex].Cells[1].Value.ToString(); Date = DateTime.Parse(date); mNbEtoiles = int.Parse(DGV_Monuments.Rows[e.RowIndex].Cells[2].Value.ToString()); } } }