StatusBar - Fix bug check engine file path.

This commit is contained in:
DucDangAnh 2020-07-06 10:54:17 +07:00
parent bf9a89f8c5
commit 9e9875123d

View File

@ -40,10 +40,10 @@ namespace AIParkingApplication
lblPingTimeServer.UpdateLabel($"{pingWebServerResult.ReplyTime} ms", pingWebServerResult.BackColor, pingWebServerResult.ForeColor);
if (Process.GetProcessesByName("tmux").Length == 0)
{
if (File.Exists(engineFilePath))
{
string engineBatFilePath = Application.StartupPath + engineFilePath;
if (File.Exists(engineBatFilePath))
{
Util.ExecuteCommand(engineBatFilePath);
lblEngineStatus.UpdateLabel("DỪNG HOẠT ĐỘNG", Color.Red);
}