개정판 c68259ac
FianlPDF GridView 수정
Change-Id: Id007dfac8aa70d973a3ca8597ca260e02896753a
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs | ||
---|---|---|
566 | 566 |
} |
567 | 567 |
} |
568 | 568 |
|
569 |
public bool _AliveShow; |
|
569 |
public bool _AliveShow = false;
|
|
570 | 570 |
public bool AliveShow |
571 | 571 |
{ |
572 | 572 |
get => _AliveShow; |
573 | 573 |
set |
574 | 574 |
{ |
575 |
if (_AliveShow = !value) |
|
576 |
{ |
|
577 |
_AliveShow = false; |
|
578 |
} |
|
579 | 575 |
_AliveShow = value; |
580 | 576 |
OnPropertyChanged(() => AliveShow); |
581 | 577 |
} |
... | ... | |
1331 | 1327 |
|
1332 | 1328 |
private void ON_Stop_Process(object sender, WindowClosedEventArgs e) |
1333 | 1329 |
{ |
1330 |
var result = e.DialogResult; |
|
1331 |
if (result == true) |
|
1334 | 1332 |
{ |
1335 |
var result = e.DialogResult; |
|
1336 |
if (result == true) |
|
1337 |
{ |
|
1338 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
|
1333 |
var process = Process.GetProcessesByName("Markus.Service.ConvertProcess"); |
|
1339 | 1334 |
|
1340 |
for (int i = process.Count() - 1; i >= 0; i--) |
|
1335 |
for (int i = process.Count() - 1; i >= 0; i--) |
|
1336 |
{ |
|
1337 |
try |
|
1341 | 1338 |
{ |
1342 |
try |
|
1343 |
{ |
|
1344 |
var commandLines = process[i].Arguments().CommandLine; |
|
1339 |
var commandLines = process[i].Arguments().CommandLine; |
|
1345 | 1340 |
|
1346 |
if (commandLines.Count() > 0) |
|
1341 |
if (commandLines.Count() > 0) |
|
1342 |
{ |
|
1343 |
if (commandLines[0] == "TEST" && commandLines[1] == "1") |
|
1347 | 1344 |
{ |
1348 |
if (commandLines[0] == "TEST" && commandLines[1] == "1") |
|
1349 |
{ |
|
1350 |
process[i].Kill(); |
|
1351 |
} |
|
1352 |
//if (ServiceStation.AliveConvertQueue.Count(f => f.ConvertID == commandLines[0]) == 0) |
|
1353 |
//{ |
|
1354 |
// process[i].Kill(); |
|
1355 |
//} |
|
1345 |
process[i].Kill(); |
|
1356 | 1346 |
} |
1347 |
//if (AliveItems.Count(f => f.ConvertID == commandLines[0]) == 0) //프로세스 종료후 그 종료된 프로세스 누르면 real에 있던 애들 다 convert됨 |
|
1348 |
//{ |
|
1349 |
// process[i].Kill(); |
|
1350 |
//} |
|
1357 | 1351 |
} |
1358 |
catch (Exception ex)
|
|
1359 |
{
|
|
1360 |
System.Diagnostics.Debug.WriteLine(ex.ToString());
|
|
1361 |
}
|
|
1352 |
}
|
|
1353 |
catch (Exception ex)
|
|
1354 |
{
|
|
1355 |
System.Diagnostics.Debug.WriteLine(ex.ToString());
|
|
1362 | 1356 |
} |
1363 | 1357 |
} |
1364 | 1358 |
} |
내보내기 Unified diff