Exemplo n.º 1
0
        //method called on mouse down to track what area the card is coming from

        /*        private void FindArray(PictureBox pbx)
         *      {
         *
         *          foreach (PictureBox currentPbx in TheHand)
         *          {
         *              if (currentPbx == pbx)
         *              {
         *                  zoneArray = TheHand;
         *                  for (int i=0; i<zoneArray.Length; i++)
         *                  {
         *                      if (zoneArray[i] == currentPbx) {
         *                          index = i;
         *                          currentCard = currentHand.getCardAt(index);
         *                          currentHand.removeCard(index);
         *                          currentBlank = currentHand;
         *                      }
         *                  }
         *              }
         *          }
         *          foreach (PictureBox currentPbx in TheClock)
         *          {
         *              if (currentPbx == pbx)
         *              {
         *                  zoneArray = TheClock;
         *              }
         *          }
         *          foreach (PictureBox currentPbx in TheStage)
         *          {
         *              if (currentPbx == pbx)
         *              {
         *                  zoneArray = TheStage;
         *              }
         *          }
         *          foreach (PictureBox currentPbx in Resolution)
         *          {
         *              if (currentPbx == pbx)
         *              {
         *                  zoneArray = Resolution;
         *              }
         *          }
         *      }
         */
        private void Form1_Load(object sender, EventArgs e)
        {
            //pictureBoxBSL.Image = Card

            TheHand[0] = handpcbx1;
            TheHand[1] = handpcbx2;
            TheHand[2] = handpcbx3;
            TheHand[3] = handpcbx4;
            TheHand[4] = handpcbx5;


            TheClock[0] = c1;
            TheClock[1] = c2;
            TheClock[2] = c3;
            TheClock[3] = c4;
            TheClock[4] = c5;
            TheClock[5] = c6;
            TheClock[6] = c7;

            TheStage[0] = pictureBoxBSL;
            TheStage[1] = pictureBoxBSR;
            TheStage[2] = pictureBoxCSL;
            TheStage[3] = pictureBoxCSM;
            TheStage[4] = pictureBoxCSR;

            Resolution[0] = Res1;
            Resolution[1] = Res2;
            Resolution[2] = Res3;
            Resolution[3] = Res4;

            test[0] = pictureBox6;
            test[1] = pictureBox5;
            test[2] = pictureBox4;
            test[3] = pictureBox3;
            test[4] = pictureBox2;

            TheMemory = membx;
            TheWR     = WaitingRm;

            for (int i = 0; i < 5; i++)
            {
                TheHand[i].AllowDrop = true;
            }
            for (int i = 0; i < 7; i++)
            {
                TheClock[i].AllowDrop = true;
            }
            for (int i = 0; i < 5; i++)
            {
                TheStage[i].AllowDrop = true;
            }
            for (int i = 0; i < 4; i++)
            {
                Resolution[i].AllowDrop = true;
            }

            TheMemory.AllowDrop = true;
            TheWR.AllowDrop     = true;
        }
Exemplo n.º 2
0
        public static WaitingRoom NewWR()
        {
            WaitingRoom aWR = new WaitingRoom();

            return(aWR);
        }
Exemplo n.º 3
0
 private void BuildtheWR()
 {
     currentWR = Generator.NewWR();
 }