Example #1
0
        //***************************************************************************
        // Event Overrides
        //
        protected override void OnPaint(PaintEventArgs e)
        {
            //base.OnPaint(e);
            Graphics g = e.Graphics;

            g.Clear(SystemColors.ControlDarkDark);
            int yOffset = 0;

            for (int i = 0; i < this._secs.Count; i++)
            {
                ConfigGridSection sec       = this._secs[i];
                Label             lblSecHdr = new Label();
                lblSecHdr.Text = sec.SectionName;
                this.Controls.Add(lblSecHdr);
                yOffset += lblSecHdr.Height;

                if (sec.Expanded)
                {
                    // Build the GridView control to edit the data.
                    DataGridView       dgv     = new DataGridView();
                    DataGridViewColumn colName = new DataGridViewColumn();
                    colName.ReadOnly = true;
                    dgv.Columns.Add(colName);
                    DataGridViewColumn colVal = new DataGridViewColumn();
                    dgv.Columns.Add(colVal);
                    dgv.SelectionMode = DataGridViewSelectionMode.FullRowSelect;

                    for (int t = 0; t < sec.Items.Count; t++)
                    {
                        ConfigGridEntry ent = sec.Items[t];
                        if (ent.Expanded)
                        {
                        }
                    }
                }
            }
        }
Example #2
0
 public string Insert(int index, ConfigGridSection value, string key)
 {
     return(base.Insert(index, value, key));
 }
Example #3
0
 public string Add(ConfigGridSection value, string key)
 {
     return(base.Add(value, key));
 }
Example #4
0
 //***************************************************************************
 // Public Methods
 //
 public string Add(ConfigGridSection value)
 {
     return(base.Add(value, ""));
 }
 public string Insert(int index, ConfigGridSection value, string key)
 { return base.Insert(index, value, key); }
 public string Add(ConfigGridSection value, string key)
 { return base.Add(value, key); }
 //***************************************************************************
 // Public Methods
 // 
 public string Add(ConfigGridSection value)
 { return base.Add(value, ""); }