private void Form1_Load(object sender, EventArgs e) { List <UserAccount> currentUserAccounts = new List <UserAccount>(); currentUserAccounts = UserAccountsData.initializeAccount(); List <Customer> currentListOfCustomers = new List <Customer>(); currentListOfCustomers = CustomersData.initializeData(); List <Sales> currentListOfSales = new List <Sales>(); currentListOfSales = SalesData.initializeData(); }
public void populateList() { currentListOfSales = SalesData.getCurrentList(); dataGridView1.DataSource = currentListOfSales; }