Пример #1
0
 public DetailPieceView(PieceDetachee _input)
 {
     InitializeComponent();
     SelectedPiece            = _input;
     Modeles                  = new ObservableCollection <Modele>(Modele.Ensemble.FindAll(m => m.PiecesComposition.Contains(SelectedPiece)));
     Fournisseurs             = new ObservableCollection <FournisseurPiece>(FournisseurPiece.Ensemble.FindAll(fp => fp.PieceDetacheeFournisseur == SelectedPiece));
     nbVendu.Content          = SelectedPiece.Nbvendus;
     pourcentageVendu.Content = $"{100 * SelectedPiece.Nbvendus / Commande.NbPiecesVendues()} %";
 }