Folio is a project mainly written in C#, it's free.
Management studio for a Magic: the Gathering collection
Folio
A management suite for a Magic: the Gathering collection. Makes managing a cube easy!