예제 #1
0
 /// <summary>
 /// 洗牌
 /// </summary>
 public void Riffile()
 {
     for (int i = 0; i < CardsList.Count; i++)
     {
         CardsList[i].Order = Random.Next(CardsList.Count);
     }
     CardsList.Sort();
     Indicator = 0;
 }
예제 #2
0
 /// <summary>
 /// 洗牌
 /// </summary>
 public void Riffile()
 {
     for (int i = 0; i < CardsList.Count; i++)
     {
         CardsList[i].Order = Random.Next(CardsList.Count);
     }
     // CardsList.Sort();
     CardsList.Sort((card1, card2) => {
         return(card1.Order.CompareTo(card2.Order));
     });
     Indicator = 0;
 }