public static void clearQueueIfStartOfDay() { DataTable datatable = Queues.get(true, null, null, 1); if (datatable.Rows.Count > 0) { DateTime lastdate = Util.wrapNullable <DateTime>(datatable.Rows[0], Queues.COL_DB_Timestamp); if (lastdate.Date < DateTime.Now.Date) { Queues.deleteAll(); } } }
private void btnResetQueues_Click(object sender, EventArgs e) { Queues.deleteAll(); }