Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            Engine.getEngine().registerObserver(this);
            Society.getSociety("Nom", "FR", "EUR");

            /*Assistant ast=new Assistant();
             * ast.ShowDialog();*/

            worker.DoWork               += worker_DoWork;
            worker.RunWorkerCompleted   += worker_RunWorkerCompleted;
            worker.ProgressChanged      += worker_ProgressChanged;
            worker.WorkerReportsProgress = true;
        }
Beispiel #2
0
        public void notify()
        {
            if (portfolio.ItemsSource == null)
            {
                portfolio.Items.Clear();
            }
            if (equitymodule.ItemsSource == null)
            {
                equitymodule.Items.Clear();
            }

            if (!initialized)
            {
                portfolio.ItemsSource = Engine.getEngine().Portfolio;
            }
            else
            {
                equitymodule.ItemsSource = Repartiteur.getEngine().ModEqu.Results;
            }
            initialized = true;
        }
Beispiel #3
0
 private void RapportView_Load(object sender, EventArgs e)
 {
     EquityBindingSource.DataSource = Engine.getEngine().Portfolio;
     this.reportViewer1.RefreshReport();
 }
Beispiel #4
0
        private void worker_DoWork(object sender, DoWorkEventArgs e)
        {
            List <Tuple <string, int> > resultat = e.Argument as List <Tuple <string, int> >;

            Engine.getEngine().setIsins(resultat, worker);
        }
Beispiel #5
0
 private void Outils_Calculer_All_Click(object sender, RoutedEventArgs e)
 {
     Engine.getEngine().calculateAll();
 }
Beispiel #6
0
 private void Outils_Calculer_Equity_Click(object sender, RoutedEventArgs e)
 {
     Engine.getEngine().calculateEquity();
 }