示例#1
0
 private void SetupMine()
 {
     for (int i = 0; i < 100; i++)
     {
         mypencil[i] = new MyPencil();
     }
     for (int i = 0; i < 100; i++)
     {
         mylines[i] = new MyLines();
     }
     for (int i = 0; i < 100; i++)
     {
         myrect[i] = new MyRect();
     }
     for (int i = 0; i < 100; i++)
     {
         mycircle[i] = new MyCircle();
     }
 }
示例#2
0
        private void SetupMine()
        {
            for (int i = 0; i < 100; i++)
            {
                mypencil[i] = new MyPencil();
            }
            for (int i = 0; i < 100; i++)
            {
                mylines[i] = new MyLines();
            }
            for (int i = 0; i < 100; i++)
            {
                myrect[i] = new MyRect();
            }
            for (int i = 0; i < 100; i++)
            {
                mycircle[i] = new MyCircle();
            }
            parentForm.Init();

            // Make Thread to process Panel Receive
            thread = new Thread(new ThreadStart(parentForm.ReceiveFromServer));
            thread.Start();
        }
示例#3
0
        public StoreShape()
        {
            mypencil = new MyPencil[100];
            mylines  = new MyLines[100];
            myrect   = new MyRect[100];
            mycircle = new MyCircle[100];

            for (int i = 0; i < 100; i++)
            {
                mypencil[i] = new MyPencil();
            }
            for (int i = 0; i < 100; i++)
            {
                mylines[i] = new MyLines();
            }
            for (int i = 0; i < 100; i++)
            {
                myrect[i] = new MyRect();
            }
            for (int i = 0; i < 100; i++)
            {
                mycircle[i] = new MyCircle();
            }
        }