示例#1
0
        private void AddShip(Ship ship)
        {
            List <Ship> newList = Ships;

            newList.Find(x => x.Id == ship.Id).Count++;
            Ships = newList;
            RaisePropertyChanged("Ships");
            MainVM.AddShipToList(ship);
        }