Пример #1
0
 public void AddParameterView(ParameterSearchValue param)
 {
     ParameterView parameterView = new ParameterView(this, param);
     this.panel1.Controls.Add(parameterView);
     if (this.panel1.Controls.Count * 17 + 18 > this.Size.Height)
     {
         this.tableLayoutPanel1.ColumnStyles[5].Width = 20F;
     }
     parameterViewsList.Add(parameterView);
 }
Пример #2
0
 public void RemoveSelectedParameterView()
 {
     if (selectedItem == null)
     {
         return;
     }
     this.panel1.Controls.Remove(selectedItem);
     selectedItem = null;
     if (this.panel1.Controls.Count * 17 + 18 <= this.Size.Height)
     {
         this.tableLayoutPanel1.ColumnStyles[5].Width = 0F;
     }
     parameterViewsList.Remove(selectedItem);
 }
Пример #3
0
 private bool func(ParameterView item)
 {
     return true;
 }
Пример #4
0
 public ParameterViewList()
 {
     InitializeComponent();
     selectedItem = null;
     parameterViewsList = new List<ParameterView>();
 }