Exemplo n.º 1
0
 public BattleHistorySPPartyVM(SpousesBattleRecordParty party)
 {
     this._party = party;
     this._score = new BattleHistorySPScoreVM();
     this.Score.UpdateScores(party.Name, party.Remain, party.KillCount, party.Wounded, party.RunAway, party.Killed, 0);
     this._members = new MBBindingList <BattleHistorySPCharacterVM>();
     if (null != this._party.Characters && this._party.Characters.Count > 0)
     {
         this._party.Characters.Sort((x, y) => {
             return(-1 * x.KillCount.CompareTo(y.KillCount));
         });
         this._party.Characters.ForEach(obj =>
         {
             if (null != obj)
             {
                 this._members.Add(new BattleHistorySPCharacterVM(obj));
             }
         }
                                        );
     }
 }
Exemplo n.º 2
0
 public BattleHistorySPCharacterVM(SpousesBattleRecordCharacter character)
 {
     this._battleRecordCharacter = character;
     this._score = new BattleHistorySPScoreVM();
     this.Score.UpdateScores(character.Character.Name.ToString(), character.Remain, character.KillCount, character.Wounded, character.RunAway, character.Killed, 0);
 }
Exemplo n.º 3
0
 public  BattleHistorySPSideVM()
 {
     this.Parties = new MBBindingList<BattleHistorySPPartyVM>();
     this._sideScore = new BattleHistorySPScoreVM();
 }