Example #1
0
 public static void setDuration(DialogProgress dialogProgress, DateTime duration)
 {
     // Wait for thread to become avaiable
     if (dialogProgress.IsHandleCreated)
     {
         dialogProgress.Invoke((MethodInvoker) delegate()
         {
             dialogProgress.Duration = duration;
         });
     }
 }
Example #2
0
 public static void enableDetailInvoke(DialogProgress dialogProgress, bool enabled)
 {
     // Wait for thread to become avaiable
     if (dialogProgress.IsHandleCreated)
     {
         dialogProgress.Invoke((MethodInvoker) delegate()
         {
             dialogProgress.DetailedProgress = enabled;
         });
     }
 }
Example #3
0
 public static void updateDetailedProgressInvoke(DialogProgress dialogProgress, int progress, InfoFFmpegProgress ffmpegProgress)
 {
     // Wait for thread to become avaiable
     if (dialogProgress.IsHandleCreated)
     {
         dialogProgress.Invoke((MethodInvoker) delegate()
         {
             dialogProgress.updateDetailedProgress(progress, ffmpegProgress);
         });
     }
 }
Example #4
0
 public static void updateProgressInvoke(DialogProgress dialogProgress, string text)
 {
     // Wait for thread to become avaiable
     if (dialogProgress.IsHandleCreated)
     {
         dialogProgress.Invoke((MethodInvoker) delegate()
         {
             dialogProgress.updateProgress(text);
         });
     }
 }
Example #5
0
 public static void nextStepInvoke(DialogProgress dialogProgress, int step, string stepName)
 {
     // Wait for thread to become avaiable
     if (dialogProgress.IsHandleCreated)
     {
         dialogProgress.Invoke((MethodInvoker) delegate()
         {
             dialogProgress.StepName     = stepName;
             dialogProgress.StepsCurrent = step;
         });
     }
 }
Example #6
0
        public static DataReceivedEventHandler getFFmpegOutputHandler(DialogProgress dialogProgress)
        {
            DataReceivedEventHandler outHandler = null;

            // Wait for thread to become avaiable
            if (dialogProgress.IsHandleCreated)
            {
                dialogProgress.Invoke((MethodInvoker) delegate()
                {
                    outHandler = dialogProgress.FFmpegOutputHandler;
                });
            }

            return(outHandler);
        }
Example #7
0
        public static bool getCancelInvoke(DialogProgress dialogProgress)
        {
            bool cancelState = false;

            // Wait for thread to become avaiable
            if (dialogProgress.IsHandleCreated)
            {
                dialogProgress.Invoke((MethodInvoker) delegate()
                {
                    cancelState = dialogProgress.Cancel;
                });
            }

            return(cancelState);
        }