コード例 #1
0
        /// <summary>
        /// Changes the barcode of the selected key once the input form has closed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void fiGetNewCode_FormClosing(object sender, FormClosingEventArgs e)
        {
            string sNewBarcode = fiGetNewCode.sGetDataToReturn();

            if (sNewBarcode != "CANCELLED")
            {
                string[] sProductData = tEngine.GetItemDetailsForLookup(sNewBarcode);
                if (sProductData != null)
                {
                    tEngine.EditPresetKeys(sCurrentKeyBeingEdited, sNewBarcode);
                    lbDescription.Items[lbDescription.SelectedIndex] = sProductData[0];
                    lbKeyCode.Items[lbKeyCode.SelectedIndex]         = sNewBarcode;
                }
            }
        }