Beispiel #1
0
 /// <summary>
 /// PowerDVD 重開
 /// </summary>
 /// <param name="ResultArray"></param>
 public static void DVD_Restart(ref Dictionary <string, object> ResultArray)
 {
     //Process[] processes = Process.GetProcessesByName("powerDVD");
     //if (processes.Length > 0)
     //{
     //    foreach (Process p in processes)
     //    {
     //        p.Kill();
     //        //p.WaitForExit();
     //    }
     //    Thread.Sleep(2000);
     //    FuncClass.DVD_On(ref ResultArray);
     //    if ((string)ResultArray[Parameters.Status] != "Fail")
     //    {
     //        ResultArray[Parameters.Status] = "Fail";
     //        ResultArray[Parameters.Remark] = "Already restart PowerDVD.";
     //    }
     //}
     //else
     //{
     //    ResultArray[Parameters.Status] = "Fail";
     //    ResultArray[Parameters.Remark] = "Can't find powerDVD.";
     //}
     FuncClass.DVD_On(ref ResultArray);
     if ((string)ResultArray[Parameters.Status] != "Fail")
     {
         ResultArray[Parameters.Status] = "Fail";
         ResultArray[Parameters.Remark] = "Already start PowerDVD.";
     }
 }