Beispiel #1
0
 public MV_Achat(double periode, M_Bourse mbourse, ListView compteAchat, DispatcherTimer myTimer, ResultatCompte compte)
 {
     this.compteAchat   = compteAchat;
     this.periodicite   = periode;
     this.m_Bourse      = mbourse;
     this.compte        = compte;
     this.listeAchat    = new List <M_Achat>();
     this.myTimer       = myTimer;
     this.myTimer.Tick += this.MiseAJourAchat;
     //InitialisationPeriodique();
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.graphe = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 2:
                this.CompteAchat = ((System.Windows.Controls.ListView)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.CompteAchat.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.CompteAchat_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.boutonAchat = ((System.Windows.Controls.Button)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.boutonAchat.Click += new System.Windows.RoutedEventHandler(this.boutonAchat_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.boutonVente = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.boutonVente.Click += new System.Windows.RoutedEventHandler(this.boutonVente_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ItemHistorique = ((System.Windows.Controls.ListView)(target));
                return;

            case 6:
                this.Quantite = ((ControlLib.NumericUpDown)(target));
                return;

            case 7:
                this.ResultatCompte = ((Finance.ResultatCompte)(target));
                return;
            }
            this._contentLoaded = true;
        }