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

AddDataStoreProperty() public method

public AddDataStoreProperty ( DictionaryProperty p ) : void
p DictionaryProperty
return void
        public void AddDataStoreProperty(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);

            grdDataStoreProperties.Rows.Add(row);
        }