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; }
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; }
private void RapportView_Load(object sender, EventArgs e) { EquityBindingSource.DataSource = Engine.getEngine().Portfolio; this.reportViewer1.RefreshReport(); }
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); }
private void Outils_Calculer_All_Click(object sender, RoutedEventArgs e) { Engine.getEngine().calculateAll(); }
private void Outils_Calculer_Equity_Click(object sender, RoutedEventArgs e) { Engine.getEngine().calculateEquity(); }