Пример #1
0
 //初始化点位
 private void initLocation()
 {
     this.trainResultLabelPoint = LayoutUtil.getCenterLocation(this, this.trainResultLabel);
     this.imageCenterPoint      = LayoutUtil.getCenterLocation(this, this.imageBox1);
     this.imageLeftPoint        = LayoutUtil.getLeftLocation(this, this.imageBox1);
     this.imageRightPoint       = LayoutUtil.getRightLocation(this, this.imageBox1);
     this.imageUpPoint          = LayoutUtil.getUpLocation(this, this.imageBox1);
     this.imageDownPoint        = LayoutUtil.getDownLocation(this, this.imageBox1);
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="num">总共多少组图片</param>
 public RandStatusContainer(int num, Form form, PictureBox pictureBox)
 {
     for (int i = 0; i < (int)num / 4; i++)
     {
         showTypeList.Add(ShowType.PERSON_AND_PERSON);
         showTypeList.Add(ShowType.PERSON_AND_THING);
         showTypeList.Add(ShowType.THING_AND_PERSON);
         showTypeList.Add(ShowType.THING_AND_THING);
     }
     for (int j = 0; j < (int)num / 2; j++)
     {
         disappearTypeList.Add(DisappearType.DISAPPEAR_ORDER);
         disappearTypeList.Add(DisappearType.DISAPPEAR_TOGETHER);
     }
     showPointList.Add(LayoutUtil.getUpLocation(form, pictureBox));
     showPointList.Add(LayoutUtil.getDownLocation(form, pictureBox));
     showPointList.Add(LayoutUtil.getLeftLocation(form, pictureBox));
     showPointList.Add(LayoutUtil.getRightLocation(form, pictureBox));
     showPointList.Add(LayoutUtil.getCenterLocation(form, pictureBox));
 }