public CompteAchatDetail(M_Achat achat, MV_Bourse mv_bourse) { InitializeComponent(); this.mv_bourse = mv_bourse; this.compteAchat = achat; this.boutonChoisi = new BoutonResult(); this.boutonChoisi = BoutonResult.Aucun; if (achat.ContientStopLoss) { StopLossText.Text = achat.StopLoss.ToString(); } if (achat.ContientTakeProfit) { TakeProfitText.Text = achat.TakeProfit.ToString(); } Quantite.Content = achat.QuantiteAchat; PrixAchat.Content = achat.PrixAchat; Benefice.DataContext = achat; BeneficeTotal.DataContext = achat; }
private void FermerPositionButton_Click(object sender, RoutedEventArgs e) { this.boutonChoisi = BoutonResult.FermerPosition; this.Close(); }