Esempio n. 1
0
 private static int SortByEmptyEquipment(SortableEquipment a, SortableEquipment b)
 {
     if (a.HasEquipment() && !b.HasEquipment())
     {
         return(1);
     }
     if (b.HasEquipment() && !a.HasEquipment())
     {
         return(-1);
     }
     return(0);
 }
Esempio n. 2
0
        private bool ListHasEmptyFirstCard(UXGrid grid)
        {
            UXElement item = grid.GetItem(0);

            if (item == null)
            {
                return(false);
            }
            SortableEquipment sortableEquipment = item.Tag as SortableEquipment;

            return(sortableEquipment != null && !sortableEquipment.HasEquipment());
        }