示例#1
0
        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;
        }
示例#2
0
 private void InitializeGeneralSettings()
 {
     _generalSettingsManager = _generalSettingsManager ?? new DataManager();
     LoadSalesTransactionType();
 }
示例#3
0
 private void LoadAllPurchases()
 {
     _dataManager = new DataManager();
     purchaseBindingSource.DataSource = _dataManager.GetAllPurchases().OrderByDescending(pr => pr.DateRecorded);
 }
示例#4
0
 private void InitializeVariables()
 {
     _dataManager = new DataManager();
     _receiptPrinter = new ReceiptPrinter();
 }
示例#5
0
 private void LoadAllStockItems()
 {
     _dataManager = new DataManager();
     stockItemTypeBindingSource.DataSource = _dataManager.GetAllStockItemTypes();
 }
示例#6
0
 private void BindData()
 {
     _dataManager = new DataManager();
     transactionBindingSource.DataSource = _dataManager.GetAllTransactions();
 }
示例#7
0
 private void InitializeAccountsSection()
 {
     _accountsDataManager = _accountsDataManager ?? new DataManager();
     LoadAccounts();
 }
示例#8
0
 private void LoadAllItemsInStock()
 {
     _dataManager = new DataManager();
     supplyBindingSource.DataSource = _dataManager.GetAllSupplies().OrderByDescending(supply => supply.DateRecorded);
 }
示例#9
0
 private void InitializeTransactionTypesSection()
 {
     _transactionTypesManager = new DataManager();
     repoLookUpEdit_Accounts.DataSource = _transactionTypesManager.GetAllAccounts();
     LoadTransactionTypes();
 }
示例#10
0
 private void Initialize()
 {
     _dataManager = new DataManager();
     lookUpEdit_User.Properties.DataSource = _dataManager.GetAllUsers();
     saleBindingSource.DataSource = new List<Sale>();
 }
示例#11
0
 private void InitializeStuff()
 {
     _dataManager = new DataManager();
     _allFaultTypes = new List<FaultType>();
     _allItemTypes = new List<ItemType>();
 }
示例#12
0
 private void InitializeVariables()
 {
     _dataManager = new DataManager();
     _deletedItemTypes = new List<JobItemType>();
     _deletedFaultTypes = new List<FaultType>();
 }
示例#13
0
 private void InitializeUsersSection()
 {
     _dataManager = new DataManager();
     _allUsers = _dataManager.GetAllUsers();
     LoadUsersToTiles();
 }
示例#14
0
 private void LoadAllItemsInStock()
 {
     _dataManager = new DataManager();
     stockItemBalanceBindingSource.DataSource = _dataManager.GetAllItemsInStock();
 }
示例#15
0
 private void LoadOrReloadAllSales()
 {
     _dataManager = new DataManager();
     saleBindingSource.DataSource = _dataManager.GetAllSales().OrderByDescending(sale => sale.DateRecorded);
 }
示例#16
0
 private void InitializeVariables()
 {
     _dataManager = new DataManager();
 }