Exemplo n.º 1
0
    public static void Main(string[] args)
    {
        ConverterClass converter = new ConverterClass();

        converter.ConvertVideo("my_video.avi");

        /* you should watch for when the finished method
         * returns true, and then act accordingly */
        /* as we are in a console, the host application (we)
         * may finish before the guest application (convert.exe),
         * so we need to wait here */
        while (!converter.finished())
        {
            /* wait */
            Thread.Sleep(100);
        }
        /* video finished converting */
        doActionsAfterConversion();
    }