AddToAction List colours

This commit is contained in:
2025-12-02 12:59:40 +00:00
parent e29d104d47
commit 30bd2fe73c
18 changed files with 171 additions and 160 deletions

View File

@@ -123,13 +123,13 @@ namespace AiQ_GUI
int rowsAffected = cmd.ExecuteNonQuery();
// Execute the command and get the number of rows affected
if (rowsAffected == 0) // If one or more rows were updated
MainForm.Instance.AddToActionsList($"No rows affected for {modelNumber}");
MainForm.Instance.AddToActionsList($"No rows affected for {modelNumber}{Level.ERROR}");
}
conn.Close();
}
catch
{
MainForm.Instance.AddToActionsList("Could not access Access in Google Drive. Is it running?");
MainForm.Instance.AddToActionsList($"Could not access Access in Google Drive. Is it running?{Level.WARNING}");
return;
}
}
@@ -161,7 +161,7 @@ namespace AiQ_GUI
conn.Close();
if (rows == 0)
MainForm.Instance.AddToActionsList("No rows inserted into DiagsStats (unexpected).");
MainForm.Instance.AddToActionsList($"No rows inserted into DiagsStats (unexpected).{Level.ERROR}");
}
}