Exemplo n.º 1
0
        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;
        }
        public MainWindow()
        {
            id = 0;

            //periodeAchat = 0.5;
            periode = 1; // seconde

            InitializeComponent();
            #region Initialisation MV
            mv_Bourse          = new MV_Bourse(periode);
            mv_HistoriqueCours = new MV_HistoriqueCours(periode, mv_Bourse.GetM_Bourse(), ItemHistorique, mv_Bourse.MyTimer);
            mv_Achat           = new MV_Achat(periode, mv_Bourse.GetM_Bourse(), CompteAchat, mv_Bourse.MyTimer, ResultatCompte);
            #endregion

            #region Graphe Paramaters
            graphe.DisableAnimations = true;
            graphe.ScrollBarFill     = Brushes.AntiqueWhite;
            this.graphe.Series       = mv_Bourse.PointsSerie;

            #endregion
        }
Exemplo n.º 3
0
        public MV_Bourse copieMV_Bourse()
        {
            MV_Bourse copie = this;

            return(copie);
        }
Exemplo n.º 4
0
 public void affichageLabel(MV_Bourse bourse)
 {
 }