示例#1
0
 protected void InsertFilterItem(FilterItem item)
 {
     item.BeginInit();
     item.Name = string.Format(CultureInfo.InvariantCulture, "Expression{0}", new object[]
     {
         this.FilterItems.Count.ToString(CultureInfo.InvariantCulture)
     });
     this.FilterItems.Add(item);
     this.FilterItems.SetChildIndex(item, 0);
     item.EndInit();
     base.Focus();
     base.SelectNextControl(item, true, true, true, false);
 }
示例#2
0
 private void UpdateVisibile()
 {
     if (this.DataSource != null && this.DataSource.SupportsFiltering)
     {
         foreach (object obj in this.FilterItems)
         {
             FilterItem filterItem = (FilterItem)obj;
             filterItem.BeginInit();
         }
         base.Visible = (this.PropertiesToFilter.Count > 0);
         foreach (object obj2 in this.FilterItems)
         {
             FilterItem filterItem2 = (FilterItem)obj2;
             filterItem2.EndInit();
         }
     }
 }