public watchListForm(BusinessTier.User usr, BusinessTier.BusinessLogic b) { InitializeComponent(); this.loggedUser = usr; this.bLogic = b; searchAutocomplete(); if (bLogic.isWatchlistEmpty(loggedUser.id)) { watchlistDataGridView.Rows.Clear(); removeFromWatchlist.Enabled = false; } else { populateWatchListTable(); removeFromWatchlist.Enabled = true; //populateGraph(); } industriesComboBox.ValueMember = "Industry"; industriesComboBox.DisplayMember = "Industry"; industriesComboBox.DataSource = bLogic.populateIndustryDropDown(); }
public PurchaseForm(BusinessTier.User usr, BusinessTier.BusinessLogic b) { InitializeComponent(); this.loggedUser = usr; this.bLogic = b; this.nameLabel.Text += " " + loggedUser.firstName.ToString() +" "+ loggedUser.lastName.ToString(); this.cashTextBox.Text = loggedUser.balance.ToString(); this.Size = new Size(851, 620); searchAutocomplete(); industriesComboBox.ValueMember = "Industry"; industriesComboBox.DisplayMember = "Industry"; industriesComboBox.DataSource = bLogic.populateIndustryDropDown(); }