Ejemplo n.º 1
0
 public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
 {
     if (this._isAcending)
     {
         return(y.Garrison.CompareTo(x.Garrison) * -1);
     }
     return(y.Garrison.CompareTo(x.Garrison));
 }
Ejemplo n.º 2
0
 public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
 {
     if (this._isAcending)
     {
         return(y.RelationBonus.CompareTo(x.RelationBonus) * -1);
     }
     return(y.RelationBonus.CompareTo(x.RelationBonus));
 }
Ejemplo n.º 3
0
 public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
 {
     if (this._isAcending)
     {
         return(y.Prosperity.CompareTo(x.Prosperity) * -1);
     }
     return(y.Prosperity.CompareTo(x.Prosperity));
 }
Ejemplo n.º 4
0
 public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
 {
     if (this._isAcending)
     {
         return(x.Settlement.IsCastle.CompareTo(y.Settlement.IsCastle));
     }
     return(x.Settlement.IsCastle.CompareTo(y.Settlement.IsCastle) * -1);
 }
Ejemplo n.º 5
0
 public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
 {
     if (this._isAcending)
     {
         return(y.Settlement.OwnerClan.Name.ToString().CompareTo(x.Settlement.OwnerClan.Name.ToString()) * -1);
     }
     return(y.Settlement.OwnerClan.Name.ToString().CompareTo(x.Settlement.OwnerClan.Name.ToString()));
 }
Ejemplo n.º 6
0
            public override int Compare(GrantFiefItemVM x, GrantFiefItemVM y)
            {
                float num   = (y.Settlement.Town != null) ? y.Settlement.Town.FoodStocks : 0f;
                float value = (x.Settlement.Town != null) ? x.Settlement.Town.FoodStocks : 0f;

                if (this._isAcending)
                {
                    return(num.CompareTo(value) * -1);
                }
                return(num.CompareTo(value));
            }
Ejemplo n.º 7
0
 public void OnSelect(GrantFiefItemVM grantFiefItem)
 {
     SelectedSettlementItem.IsSelected = false;
     SelectedSettlementItem            = grantFiefItem;
     SelectedSettlementItem.IsSelected = true;
 }