/// <summary> /// Permet de supprimer des monuments /// </summary> private void SupprimerMonument() { try { DialogResult dr = MessageBox.Show("Voulez-vous supprimer ce monument?", "Supprimer un monument...", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (dr == DialogResult.OK) { if (!String.IsNullOrEmpty(GetGUID(DGV_Monuments.Rows[t.RowIndex].Cells[0].Value.ToString()))) { string GUID = GetGUID(DGV_Monuments.Rows[t.RowIndex].Cells[0].Value.ToString()); string sql11 = "DELETE FROM MONUMENTS WHERE NOM = '" + DGV_Monuments.Rows[t.RowIndex].Cells[0].Value.ToString() + "'"; OracleCommand cmd11 = new OracleCommand(sql11, mOracleConnection); cmd11.ExecuteNonQuery(); mDB_Images.Delete(GUID); // Permet de supprimer l'iamge du serveur // } FBTN_AfficherMonument.PerformClick(); } } catch (Exception e) { MessageBox.Show(e.ToString()); } }