예제 #1
0
        private void HomeScreenForm_Load(object sender, EventArgs e)
        {
            // Update existing pallets in stock and add to RackColumn
            Pallet.ListPallet = DBUtility.GetPalletInfoFromDB <List <Pallet> >("PalletInfoTable");
            RackColumn.InitializePallet(RackColumn.ListColumn, Pallet.ListPallet);

            Pallet.SimListPallet = DBUtility.GetPalletInfoFromDB <List <Pallet> >("SimPalletInfoTable");
            RackColumn.InitializePallet(RackColumn.SimListColumn, Pallet.SimListPallet);
        }
        private void WarehouseDataForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            // Clear all list pallet and column for update
            Pallet.ListPallet.Clear();
            Pallet.SimListPallet.Clear();
            RackColumn.ListColumn.ForEach(c => Array.Clear(c.PalletCodes, 0, 3));
            RackColumn.SimListColumn.ForEach(c => Array.Clear(c.PalletCodes, 0, 3));

            // Update existing pallets in stock and add to RackColumn
            Pallet.ListPallet = DBUtility.GetPalletInfoFromDB <List <Pallet> >("PalletInfoTable");
            RackColumn.InitializePallet(RackColumn.ListColumn, Pallet.ListPallet);

            Pallet.SimListPallet = DBUtility.GetPalletInfoFromDB <List <Pallet> >("SimPalletInfoTable");
            RackColumn.InitializePallet(RackColumn.SimListColumn, Pallet.SimListPallet);
        }