public static async Task AddAccessControlLogEntry(UInt64 uid, AccessControlLogEntry accessctllogent) { if (dbconnprop == null) { throw new Exception(); } //make sure the table exists if (!LogTableExists()) { CreateAccessControlLogTable(); } var entries = await GetAccessControlLogEntries(uid); if (entries == null) { entries = new List <AccessControlLogEntry>(); } entries.Add(accessctllogent); await SetAccessControlLogEntries(uid, entries); Console.WriteLine(uid + " ---------------------------------------------------- " + entries.Count); }
private void AddRow(AccessControlLogEntry entry) { //timestamp, description, card details, modified expander, source panel dataGridView1.Rows.Add(entry.Timestamp, entry.Description, entry.Card.ToString(), entry.ExpanderInfo, entry.PanelInfo); }