private void timer_Tick(object sender, EventArgs e) { try { _sys.RefreshUnprocessedQueueItemList(); #if DEBUG } catch (Exception ex) { MessageBox.Show("Failed when fetching messages " + ex.Message); #else } catch { #endif } }