개정판 c68259ac
FianlPDF GridView 수정
Change-Id: Id007dfac8aa70d973a3ca8597ca260e02896753a
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/FinalPDFViewModel.cs | ||
---|---|---|
1407 | 1407 |
|
1408 | 1408 |
private void ON_Stop_Process(object sender, WindowClosedEventArgs e) |
1409 | 1409 |
{ |
1410 |
var result = e.DialogResult; |
|
1411 |
if (result == true) |
|
1410 | 1412 |
{ |
1411 |
var result = e.DialogResult; |
|
1412 |
if (result == true) |
|
1413 |
{ |
|
1414 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
|
1413 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
|
1415 | 1414 |
|
1416 |
for (int i = process.Count() - 1; i >= 0; i--) |
|
1415 |
for (int i = process.Count() - 1; i >= 0; i--) |
|
1416 |
{ |
|
1417 |
try |
|
1417 | 1418 |
{ |
1418 |
try |
|
1419 |
{ |
|
1420 |
var commandLines = process[i].Arguments().CommandLine; |
|
1419 |
var commandLines = process[i].Arguments().CommandLine; |
|
1421 | 1420 |
|
1422 |
if (commandLines.Count() > 0) |
|
1421 |
if (commandLines.Count() > 0) |
|
1422 |
{ |
|
1423 |
if (commandLines[0] == "TEST" && commandLines[1] == "1") |
|
1423 | 1424 |
{ |
1424 |
if (commandLines[0] == "TEST" && commandLines[1] == "1") |
|
1425 |
{ |
|
1426 |
process[i].Kill(); |
|
1427 |
} |
|
1428 |
//if (ServiceStation.AliveConvertQueue.Count(f => f.ConvertID == commandLines[0]) == 0) |
|
1429 |
//{ |
|
1430 |
// process[i].Kill(); |
|
1431 |
//} |
|
1425 |
process[i].Kill(); |
|
1432 | 1426 |
} |
1427 |
//if (AliveItems.Count(f => f.ConvertID == commandLines[0]) == 0) |
|
1428 |
//{ |
|
1429 |
// process[i].Kill(); |
|
1430 |
//} |
|
1433 | 1431 |
} |
1434 |
catch (Exception ex)
|
|
1435 |
{
|
|
1436 |
System.Diagnostics.Debug.WriteLine(ex.ToString());
|
|
1437 |
}
|
|
1432 |
}
|
|
1433 |
catch (Exception ex)
|
|
1434 |
{
|
|
1435 |
System.Diagnostics.Debug.WriteLine(ex.ToString());
|
|
1438 | 1436 |
} |
1439 | 1437 |
} |
1440 | 1438 |
} |
내보내기 Unified diff