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

@ -41,9 +41,9 @@ namespace AIParkingApplication
if (Process.GetProcessesByName("tmux").Length == 0)
{
if (File.Exists(engineFilePath))
string engineBatFilePath = Application.StartupPath + engineFilePath;
if (File.Exists(engineBatFilePath))
{
string engineBatFilePath = Application.StartupPath + engineFilePath;
Util.ExecuteCommand(engineBatFilePath);
lblEngineStatus.UpdateLabel("DỪNG HOẠT ĐỘNG", Color.Red);
}