static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            ApplicationContainer container = new ApplicationContainer();
            container.Platform = new WinFormsPlatformAdapter();
            container.ApplicationPackage = new HcduContent();

            container.Start();

            //todo: use ApplicationContext instead ?
            Application.Run((Form) container.CreateMainWindow());
        }
        public static void Main(string[] args)
        {
            Application.Init ();

            ApplicationContainer container = new ApplicationContainer();
            container.Platform = new GtkPlatformAdapter();
            container.ApplicationPackage = new HcduContent();

            container.Start ();

            Window mainWindow = (Window) container.CreateMainWindow();
            mainWindow.DeleteEvent += (o, a) =>
            {
                Application.Quit();
                a.RetVal = true;
            };

            mainWindow.Show();
            Application.Run ();
        }