Пример #1
0
        private void AddElementString(ConfigurationString ce, Panel p, ref int y)
        {
            AddElementLabel(ce, p, ref y);
            TextBox c = new TextBox();

            c.Text = ssc.GetConf(ce.Id, ce.DefaultValue);
            // WARNING: Values for standard DPI
            c.Left  = 9;
            c.Width = p.ClientSize.Width - 16;
            if (ce.IsPassword)
            {
                c.PasswordChar = '*';
            }
            if (ce.Mandatory)
            {
                c.BackColor = ce.UIMandatoryColor;
            }
            //TODO: Handle isDirectory and IsFile properties
            FinishElement(c, ce, p, ref y);
        }