private void LongAction(object state)
        {
            if (!(state is List <UrlSendTask>))
            {
                return;
            }

            List <UrlSendTask> sendTasks = state as List <UrlSendTask>;

            CurrentStepCount = sendTasks.Count;

            for (int i = 0; i < sendTasks.Count; i++)
            {
                if (CurrentStep < 0)
                {
                    return;
                }

                UrlSender.SendRequest(sendTasks[i]);

                //hread.Sleep(3000);

                CurrentStep = i + 1;
            }
            CurrentStep = -1;
        }
        public override void ExecuteLongAction(object state)
        {
            if (!(state is List <UrlSendTask>))
            {
                return;
            }

            List <UrlSendTask> sendTasks = state as List <UrlSendTask>;

            CurrentStepCount = sendTasks.Count;

            for (int i = 0; i < sendTasks.Count; i++)
            {
                if (CurrentStep < 0)
                {
                    return;
                }

                UrlSender.SendRequest(sendTasks[i]);

                CurrentStep = i + 1;
            }
            CurrentStep = -1;
        }