private void InstantiateVariables() { _dataManager = new DataManager(); lookupEdit_TransactionType.Properties.DataSource = _dataManager.GetAllTransactionTypes(); memoEdit_Notes.Text = "[Provide details of the transaction]"; if (_preferredTransactionType != null) { lookupEdit_TransactionType.EditValue = _preferredTransactionType.TransactionTypeID; lookupEdit_TransactionType.Properties.ReadOnly = true; } textBox_RecordedBy.Text = CurrentlyLoggedInUser.FullName; }
private void InitializeGeneralSettings() { _generalSettingsManager = _generalSettingsManager ?? new DataManager(); LoadSalesTransactionType(); }
private void LoadAllPurchases() { _dataManager = new DataManager(); purchaseBindingSource.DataSource = _dataManager.GetAllPurchases().OrderByDescending(pr => pr.DateRecorded); }
private void InitializeVariables() { _dataManager = new DataManager(); _receiptPrinter = new ReceiptPrinter(); }
private void LoadAllStockItems() { _dataManager = new DataManager(); stockItemTypeBindingSource.DataSource = _dataManager.GetAllStockItemTypes(); }
private void BindData() { _dataManager = new DataManager(); transactionBindingSource.DataSource = _dataManager.GetAllTransactions(); }
private void InitializeAccountsSection() { _accountsDataManager = _accountsDataManager ?? new DataManager(); LoadAccounts(); }
private void LoadAllItemsInStock() { _dataManager = new DataManager(); supplyBindingSource.DataSource = _dataManager.GetAllSupplies().OrderByDescending(supply => supply.DateRecorded); }
private void InitializeTransactionTypesSection() { _transactionTypesManager = new DataManager(); repoLookUpEdit_Accounts.DataSource = _transactionTypesManager.GetAllAccounts(); LoadTransactionTypes(); }
private void Initialize() { _dataManager = new DataManager(); lookUpEdit_User.Properties.DataSource = _dataManager.GetAllUsers(); saleBindingSource.DataSource = new List<Sale>(); }
private void InitializeStuff() { _dataManager = new DataManager(); _allFaultTypes = new List<FaultType>(); _allItemTypes = new List<ItemType>(); }
private void InitializeVariables() { _dataManager = new DataManager(); _deletedItemTypes = new List<JobItemType>(); _deletedFaultTypes = new List<FaultType>(); }
private void InitializeUsersSection() { _dataManager = new DataManager(); _allUsers = _dataManager.GetAllUsers(); LoadUsersToTiles(); }
private void LoadAllItemsInStock() { _dataManager = new DataManager(); stockItemBalanceBindingSource.DataSource = _dataManager.GetAllItemsInStock(); }
private void LoadOrReloadAllSales() { _dataManager = new DataManager(); saleBindingSource.DataSource = _dataManager.GetAllSales().OrderByDescending(sale => sale.DateRecorded); }
private void InitializeVariables() { _dataManager = new DataManager(); }