Example #1
0
 /// <summary>
 /// catches the ChangePriority event from the progresswindow and forward it to the encoder class
 /// </summary>
 /// <param name="priority"></param>
 private void pw_PriorityChanged(ProcessPriority priority)
 {
     try
     {
         currentProcessor.changePriority(priority);
     }
     catch (JobRunException e)
     {
         mainForm.addToLog("Error when attempting to change priority: " + e.Message);
     }
 }
Example #2
0
 /// <summary>
 /// catches the ChangePriority event from the progresswindow and forward it to the encoder class
 /// </summary>
 /// <param name="priority"></param>
 private void pw_PriorityChanged(ProcessPriority priority)
 {
     try
     {
         currentProcessor.changePriority(priority);
     }
     catch (JobRunException e)
     {
         log.LogValue("Error attempting to change priority", e, ImageType.Error);
     }
 }
Example #3
0
 public virtual bool changePriority(ProcessPriority priority, out string error)
 {
     error = null;
     return(encoder.changePriority(priority, out error));
 }