Esempio n. 1
0
        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();
                }
            }
        }
Esempio n. 2
0
 private void btnResetQueues_Click(object sender, EventArgs e)
 {
     Queues.deleteAll();
 }