Пример #1
0
        private void ValorizzaControlloCustom(string tag)
        {
            if (tag == "")
            {
                return;
            }
            int    dotpos = tag.IndexOf(".");
            string tipo   = tag.Substring(0, dotpos);
            string valore = HelpForm.GetLastField(tag, 1);

            switch (tipo.ToLower())
            {
            case "costant":
                rdoCostant.Checked = true;
                chkHidden.Checked  = (valore == "hidden"?true:false);
                break;

            case "check":
                rdoCheck.Checked = true;
                txtCheck.Text    = valore;
                break;

            case "radio":
                rdoRadio.Checked = true;
                txtRadio.Text    = valore;
                break;

            case "custom":
                rdoCustom.Checked = true;
                HelpForm.SetComboBoxValue(cboCustom, valore);
                break;
            }
        }