Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        private void BinDataToControls()
        {
            bool IsEmpty = false;

            if (Ultils.GetValueRegistryKey("Process") != null)
            {
                processName = Ultils.GetValueRegistryKey("Process").ToString();
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("StationNO") != null)
            {
                stationNo = Ultils.GetValueRegistryKey("StationNO").ToString();
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("FileExtension") != null)
            {
                fileExtension = Ultils.GetValueRegistryKey("FileExtension").ToString();
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("InputLog") != null)
            {
                inputLog = Ultils.GetValueRegistryKey("InputLog").ToString();
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("OutputLog") != null)
            {
                outputLog = Ultils.GetValueRegistryKey("OutputLog").ToString();
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("BarcodeLength") != null)
            {
                barcodeLength = int.Parse(Ultils.GetValueRegistryKey("BarcodeLength").ToString());
            }
            else
            {
                IsEmpty = true;
            }
            if (Ultils.GetValueRegistryKey("ColumnCount") != null)
            {
                columnCount = int.Parse(Ultils.GetValueRegistryKey("ColumnCount").ToString());
            }
            else
            {
                IsEmpty = true;
            }

            if (IsEmpty == true)
            {
                new FormConfig().ShowDialog();
                BinDataToControls();
                new FormMain().ShowDialog();
            }
        }