Пример #1
0
 private void CommonMethod()
 {
     try
     {
         if (count > 0)
         {
             int flaged = 0;
             flag   = commonC.GetRandom(count); //随机产生图片
             flaged = fge[flag];
             if (gameIma != null)
             {
                 imabush1.ImageSource        = commonC.ConvertLayout(listImage[flaged - 1].littleImage.ToArray());
                 small_ImageBoder.Background = imabush1;
                 angle = commonC.GetRandomDirection();
                 roteteTransform.Angle = angle;
             }
             else
             {
                 Messagebox.Show("错误", "对不起,没有你要找的字,请重新输入!");
             }
         }
     }
     catch (Exception ex)
     {
         Messagebox.Show("错误", ex.ToString());
     }
 }