private void CashierView_Load(object sender, EventArgs e) { UserCurrencies = new BindingList <Currency>(); CashierCurrencies = new BindingList <Currency>(); GetCurrenciesEvent?.Invoke(); userCurrencyListBox.DataSource = UserCurrencies; cashierCurrencyListBox.DataSource = CashierCurrencies; }
private void AdminView_Load(object sender, EventArgs e) { Currencies = new BindingList <Currency>(); Transactions = new BindingList <Transaction>(); GetCurrenciesEvent?.Invoke(); GetTransactionsEvent?.Invoke(); currenciesGrid.DataSource = typeof(List <Currency>); currenciesGrid.DataSource = Currencies; transactionsGrid.DataSource = typeof(List <Transaction>); transactionsGrid.DataSource = Transactions; currenciesGrid.CellValueChanged += UpdateCurrency; }