示例#1
0
        void ToonCheats()
        {
            for (int i = 0; i < mAantalCheats; i++)
            {
                CheatsController tijdelijkeController = new CheatsController();
                mCheatsControl.Add(tijdelijkeController);
            }

            for (int i = 0; i < mAantalCheats; i++)
            {
                CheatsView cheatsview = mCheatsControl[i].GetViewCheats();

                int horizontalPosition;
                horizontalPosition  = i * cheatsview.Width;
                cheatsview.Location = new Point(horizontalPosition, mPlayerPanels[i].Bottom);
                cheatsview.Name     = "cheatsview" + i;
                //Controls.Add(cheatsview);
                mCheatsViewList.Add(cheatsview);
                Controls.Add(cheatsview);
            }
        }
示例#2
0
 public CheatsView(CheatsController c)
 {
     InitializeComponent();
     controller = c;
 }
 public CheatsView(CheatsController c)
 {
     InitializeComponent();
       controller = c;
 }
        void ToonCheats()
        {
            for (int i = 0; i < mAantalCheats; i++)
              {
            CheatsController tijdelijkeController = new CheatsController();
            mCheatsControl.Add(tijdelijkeController);
              }

              for (int i = 0; i < mAantalCheats; i++)
              {
            CheatsView cheatsview = mCheatsControl[i].GetViewCheats();

            int horizontalPosition;
            horizontalPosition = i * cheatsview.Width;
            cheatsview.Location = new Point(horizontalPosition, mPlayerPanels[i].Bottom);
            cheatsview.Name = "cheatsview" + i;
            //Controls.Add(cheatsview);
            mCheatsViewList.Add(cheatsview);
            Controls.Add(cheatsview);

              }
        }