FdoToolbox.Base.Controls.FdoCreateDataStoreCtl.AddConnectProperty C# (CSharp) Method

AddConnectProperty() public method

public AddConnectProperty ( DictionaryProperty p ) : void
p DictionaryProperty
return void
        public void AddConnectProperty(DictionaryProperty p)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = p.LocalizedName;

            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            if (p.IsFile || p.IsPath)
            {
                valueCell.ContextMenuStrip = ctxHelper;
                valueCell.ToolTipText = "Right click for helpful options";
            }
            valueCell.Value = p.DefaultValue;

            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdConnectionProperties.Rows.Add(row);

            if (p.Protected)
                pwdCells.Add(valueCell);
        }