BTool.TxDataOutThread.ClearTxQueueQuestion C# (CSharp) Method

ClearTxQueueQuestion() private method

private ClearTxQueueQuestion ( ) : void
return void
        private void ClearTxQueueQuestion()
        {
            int qlength = dataQ.GetQLength();
            if (qlength > 0)
            {
                string msg = "There Are " + qlength.ToString() + " Pending Transmit Messages\nDo You Want To Clear All Pending Transmit Messages?\n";
                if (DisplayMsgCallback != null)
                    DisplayMsgCallback(SharedAppObjs.MsgType.Warning, msg);
                MsgBox.MsgResult msgResult = msgBox.UserMsgBox(SharedObjects.MainWin, MsgBox.MsgTypes.Warning, MsgBox.MsgButtons.YesNo, MsgBox.MsgResult.Yes, msg);

                if (DisplayMsgCallback != null)
                    DisplayMsgCallback(SharedAppObjs.MsgType.Info, "UserResponse = " + msgResult.ToString() + "\n");
                if (msgResult == MsgBox.MsgResult.Yes)
                    dataQ.ClearQ();
            }
        }