Beispiel #1
0
        protected override void OnExit(ExitEventArgs e)
        {
            //Clean Media Lib
            MV_Manager.CloseMediaVault();
            MV_Manager.DisposeLog();

            base.OnExit(e);
        }
Beispiel #2
0
        static void Main()
        {
            //Important! Usually it is a best place to initialize library.
            MV_Manager.InitializeMediaVault();

            //You can initialize log for debug purposes.
            //MV_Manager.InitializeLog("mvlog.log");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());

            //Important! Close Media Vault engine before exiting from application.
            MV_Manager.CloseMediaVault();

            //Dispose log. You can call this method always even if you didn't initialize log.
            MV_Manager.DisposeLog();
        }