﻿using System;
using System.Runtime.InteropServices;

namespace Examples
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            RevisionManager.Application application = null;
            RevisionManager.PropertySets propertySets = null;

            try
            {
                application = new RevisionManager.Application();
                propertySets = (RevisionManager.PropertySets)application.PropertySets;
                propertySets.Open(@"C:\Part1.par", true);
                var count = propertySets.Count;
            }
            catch (System.Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
    }
}