예제 #1
0
        public LargeInventoryMode()
        {
            InitializeComponent();

            inventory = new Collection();

            // Initialize dynamicListView
            dListView = new DynamicListView(lvResults, inventory, ListViewType.MANAGEMENT, true);
        }
예제 #2
0
        public UnknownUPCHandler(string upc)
        {
            InitializeComponent();

            // Assign a new DynamicListView to the listview on the form
            dListView = new DynamicListView(lvResults, TableNames.INVENTORY, ListViewType.MANAGEMENT, true);
            newUPC = upc;

            // Success = false by default
            success = false;
        }
예제 #3
0
        public ManageInventory()
        {
            InitializeComponent();

            // Initialize DynamicListView
            RemoveItemCheckedHandler(); // Temporarily remove ItemChecked Event handler. (normally called every time an item is added. Super slow.)
            dListView = new DynamicListView(lvResults, TableNames.INVENTORY, ListViewType.MANAGEMENT, true);
            RestoreItemCheckedHandler(); // Restore ItemChecked Event handler.

            // Update "Total Items" label
            lblTotalItems.Text = "Total Items: " + DBaccess.GetItemTotal().ToString();
        }
예제 #4
0
        public POSinventory()
        {
            InitializeComponent();

            // Initialize dynamic listviews
            dInventoryListView = new DynamicListView(lvResults, TableNames.INVENTORY, ListViewType.POS, true);

            dInventoryListView.hideOutOfStock = chkHideZero.Checked; // Hide items that aren't in stock by default

            //dCartListView = new DynamicListview(lvResults, TableNames.INVENTORY, ListViewType.CART, true);
            //dTradeListView = new DynamicListview(lvResults, TableNames.INVENTORY, ListViewType.TRADECART, true);
        }