public void ClearShowing() { Queue<AppMsg> showing = new Queue<AppMsg>(); ObTainShowing(msgQueue, showing); ObTainShowing(stickyQueue, showing); foreach (AppMsg msg in showing) { ClearMsg(msg); } }