void UpdateParms()
        {
            _parms.IsOneFieldMode = false;
            _parms.OneFieldData   = null;
            if (tabControl1.SelectedTab == tabPage2)
            {
                NewFieldEngine oneFieldForm = new NewFieldEngine();
                oneFieldForm.FieldType    = (FieldType)FieldTypeBox.SelectedItem;
                oneFieldForm.FieldName    = FieldNameBox.Text.Trim();
                oneFieldForm.EdtText      = EDTNameBox.Text.Trim();
                oneFieldForm.ExtendsText  = EDTExtendsBox.Text.Trim();
                oneFieldForm.LabelText    = LabelBox.Text.Trim();
                oneFieldForm.HelpTextText = HelpTextBox.Text.Trim();
                int strLen;
                int.TryParse(StrLenBox.Text.Trim(), out strLen);
                oneFieldForm.NewStrEdtLen    = strLen;
                oneFieldForm.GroupName       = FieldGroupBox.Text.Trim();
                oneFieldForm.IsMandatory     = MandatoryCheckBox.Checked;
                oneFieldForm.IsDisplayMethod = IsDisplayMethodCheckBox.Checked;

                _parms.IsOneFieldMode = true;
                _parms.OneFieldData   = oneFieldForm;
            }

            //if(Tabpage)
        }
        private List <NewFieldEngine> GetFieldsValues()
        {
            List <NewFieldEngine> resList = new List <NewFieldEngine>();

            List <string> listImp = new List <string>(
                TableFieldsTxt.Split(new[] { Environment.NewLine },
                                     StringSplitOptions.RemoveEmptyEntries));

            bool     isFirstElement = true;
            TextInfo textInfo       = new CultureInfo("en-US", false).TextInfo;

            if (IsContainsHeader == false)
            {
                isFirstElement = false;
            }

            foreach (string lineImp in listImp)
            {
                List <string> listLineImp = new List <string>(
                    lineImp.Split(new[] { '\t' },
                                  StringSplitOptions.None));
                if (listLineImp.Count != 10)
                {
                    break;
                }

                if (isFirstElement)
                {
                    if (!string.Equals(listLineImp[0].Trim(), "Field type"))
                    {
                        throw new Exception($"Wrong input format");
                    }
                    isFirstElement = false;
                    continue;
                }

                NewFieldEngine fieldEngine = new NewFieldEngine();
                fieldEngine.FieldType    = (FieldType)Enum.Parse(typeof(FieldType), listLineImp[0].Trim(), true);
                fieldEngine.FieldName    = listLineImp[1].Trim();
                fieldEngine.EdtText      = listLineImp[2].Trim();
                fieldEngine.ExtendsText  = listLineImp[3].Trim();
                fieldEngine.LabelText    = listLineImp[4].Trim();
                fieldEngine.HelpTextText = listLineImp[5].Trim();
                int strLen;
                int.TryParse(listLineImp[6].Trim(), out strLen);
                fieldEngine.NewStrEdtLen = strLen;
                fieldEngine.GroupName    = listLineImp[7].Trim();
                if (string.Equals(listLineImp[8].Trim(), "yes", StringComparison.OrdinalIgnoreCase))
                {
                    fieldEngine.IsMandatory = true;
                }
                if (string.Equals(listLineImp[9].Trim(), "yes", StringComparison.OrdinalIgnoreCase))
                {
                    fieldEngine.IsDisplayMethod = true;
                }

                fieldEngine.TableName = TableName;
                resList.Add(fieldEngine);
            }

            return(resList);
        }