private void InitVMATextInputUI()
        {
            _lblInputDesc.Text  = _textInputTitle;
            _lblInputTitle.Text = _textInputTitle;

            switch (_textBoxType)
            {
            case TextInputType.Default: { UpdateInputImage(false, null); } break;

            case TextInputType.Account: { UpdateInputImage(true, Properties.Resources.baseline_perm_identity_black_24dp); }; break;

            case TextInputType.EMail: { UpdateInputImage(true, Properties.Resources.baseline_alternate_email_black_24dp); }; break;

            case TextInputType.MobilePhone: { UpdateInputImage(true, Properties.Resources.baseline_phone_black_24dp); }; break;

            case TextInputType.PassWord: {
                UpdateInputImage(true, Properties.Resources.baseline_lock_black_24dp);
                this._txtInputDesc.Properties.PasswordChar = '*';
            }; break;

            case TextInputType.Edit: { UpdateInputImage(true, Properties.Resources.baseline_edit_black_24dp); }; break;

            case TextInputType.Warning: { UpdateInputImage(true, Properties.Resources.baseline_warning_black_24dp); }; break;

            default: { UpdateInputImage(false, null); } break;
            }
            // 颜色转换
            int[] colorRGBBackColor = DrawColorConsole.ConvertStr2RGB(_inputTitleForeColor);
            this._lblInputTitle.ForeColor = Color.FromArgb(colorRGBBackColor[0], colorRGBBackColor[1], colorRGBBackColor[2]);
        }
 private void InitVMACardGroupBoxUI()
 {
     this._lblCardTitle.Text = _cardTitleText.Trim();
     // 颜色转换
     int[] colorRGBBackColor = DrawColorConsole.ConvertStr2RGB(_cardTitleBackGround);
     this._pnlCardTitle.BackColor = Color.FromArgb(colorRGBBackColor[0], colorRGBBackColor[1], colorRGBBackColor[2]);
     int[] colorRGBForeColor = DrawColorConsole.ConvertStr2RGB(_cardTitleForeColor);
     this._lblCardTitle.ForeColor = Color.FromArgb(colorRGBForeColor[0], colorRGBForeColor[1], colorRGBForeColor[2]);
 }
 private void _pnlInputSpaceText_Click(object sender, EventArgs e)
 {
     if (this._lblInputDesc.Visible == true)
     {
         this._lblInputDesc.Visible       = false;
         this._pnlInputSpaceTitle.Visible = true;
         int[] colorRGBBackColor = DrawColorConsole.ConvertStr2RGB(_inputTitleForeColor);
         this._lblInputSpaceSpara.BackColor = Color.FromArgb(colorRGBBackColor[0], colorRGBBackColor[1], colorRGBBackColor[2]);
         this._txtInputDesc.Visible         = true;
         this._txtInputDesc.Focus();
     }
 }
Exemplo n.º 4
0
        private void InitVMATextInputUI()
        {
            _lblInputDesc.Text  = _textInputTitle;
            _lblInputTitle.Text = _textInputTitle;

            // 颜色转换
            int[] colorRGBBackColor = DrawColorConsole.ConvertStr2RGB(_inputTitleForeColor);
            this._lblInputTitle.ForeColor = Color.FromArgb(colorRGBBackColor[0], colorRGBBackColor[1], colorRGBBackColor[2]);

            if (_selectionItems.Count() == 0)
            {
                return;
            }
            foreach (string selectionItem in _selectionItems)
            {
            }
        }