コード例 #1
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            using (var context = new Base_Servicio_PracticasEntities(CadenaConexion))
            {
                using (var a = new EliminarReporte(CadenaConexion, ID_EST))

                {
                    a.ShowDialog();
                }
            }
        }
        private void Button4_Click(object sender, EventArgs e)
        {
            int?id = GetID();

            if (id != null)
            {
                using (var context = new Base_Servicio_PracticasEntities(cadenaconexion))
                {
                    using (var a = new EliminarReporte(cadenaconexion, id.GetValueOrDefault()))

                    {
                        a.ShowDialog();
                    }
                }
            }
        }