Пример #1
0
 private void FormMergeMca_Load(object sender, EventArgs e)
 {
     lblCount.Text      = "";
     lblLines.Text      = "";
     tslblStatus.Text   = "等待数据";
     btnCombine.Enabled = false;
     myPerformStep      = new PerformStep(progressAdd);
     myProgressInit     = new ProgressInit(progressSetMax);
     myShowCount        = new ShowCount(showCount);
     myShowStatus       = new ShowStatus(showStatus);
     myAddListView      = new AddListView(addListView);
 }
Пример #2
0
        public override int GetHashCode()
        {
            int hash = Id.GetHashCode();

            if (String != null)
            {
                hash ^= String.GetHashCode();
            }
            hash ^= Hook.GetHashCode();
            hash ^= ShowTracking.GetHashCode();
            hash ^= ShowCount.GetHashCode();
            hash ^= CountMax.GetHashCode();
            return(hash);
        }
Пример #3
0
        public static void Main()
        {
            Console.WriteLine("Main thread starting.");

            // First, construct a ShowCount object.
            ShowCount counter = new ShowCount("child #1");

            //Next, construct a thread using the Run() method of
            // that object.
            Thread newThread = new Thread(new ThreadStart(counter.Run));

            //Finally, start execution of the thread.
            newThread.Start();

            do
            {
                Console.Write("~");
                Thread.Sleep(100);
            }while (!counter.Finished);

            Console.WriteLine("Main thread ending.");
            Console.Read();
        }