All pastes #109322 Raw Edit

Stuff

public text v1 · immutable
·published 2006-08-01 00:20 UTC
rendered paste body
		private void dispatch ()
		
		{
			object[] objectArray1;
			object[] objectArray2;
            if ((!this.webError) && this.waitForInitialize)
            {
                bool b1 = Form1.initBrowseWh.WaitOne();
                this.CallSleep(2000);
                this.waitForInitialize = false;
            }
            this.webError = false;
            this.CheckStop();
            if ((this.hourStart != -1) && (!this.startClicked))
            {
                while ((this.hourStart != -1) && (this.hourStart != (DateTime.Now.Hour % 12)))
                {
                    this.CheckStop();
                    objectArray1 = new object[] { "Waiting for the correct hour" };
                    object object1 = base.Invoke(((Delegate)this.m_updateStatus), objectArray1);
                    this.CallSleep(30000);
                }
                this.startClicked = true;
            }
            while (!this.stopBrowsing)
            {
                if (this.minStart == DateTime.Now.Minute)
                {
                    while (this.secStart >= DateTime.Now.Second)
                    {
                        Thread.Sleep(500);
                    }
                    if (this.t != null)
                    {
                        this.t.Abort();
                    }
                    this.t = new Thread(new ThreadStart(this.startLooking));
                    this.t.Name = "Second thread";
                    this.t.Priority = ThreadPriority.Highest;
                    this.t.Start();
                    this.CallSleep(120000);
                }
                this.CheckStop();
                objectArray2 = new object[] { "Waiting for correct time" };
                object object2 = base.Invoke(((Delegate)this.m_updateStatus), objectArray2);
                this.CallSleep(1000);
            }
		}