public NewPortfolio(CurrencyExchanger ce) { InitializeComponent(); this.Icon = Properties.Resources.Stocks; comboBox1.DataSource = ce.GetCurrenciesRetrieved(); }
public PortfolioUI(ref Portfolio portfolio, ref CurrencyExchanger ce) { InitializeComponent(); this.Icon = Properties.Resources.Stocks; this.thisPortfolio = portfolio; UpdateGraph(); updateGrid(thisPortfolio); tbName.Text = thisPortfolio.Name; cbCurrency.DataSource = ce.GetCurrenciesRetrieved(); cbCurrency.SelectedItem = thisPortfolio.PreferredCurrency; }