Exemplo n.º 1
0
    private void Deleted(int ImageID)
    {
        Data objdata = new Data(Global.ConnectionSql);

        try
        {
            Img obj = new Img();
            obj.DataObject = objdata;
            bool ok = obj.Delete(ImageID);
            this.BindingData();
        }
        catch (Exception ex)
        {
            Global.WriteLogError("Deleted() " + ex);
        }
        finally
        {
            objdata.DeConnect();
        }
    }