Ejemplo n.º 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);
 }
Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 3
0
        private void FilterItemRemoved(object sender, ControlEventArgs e)
        {
            FilterItem filterItem = e.Control as FilterItem;

            if (filterItem != null)
            {
                this.UnbindFromNodePropertyChanges(filterItem.FilterNode);
                if (this.incompleteItems.Contains(filterItem.FilterNode))
                {
                    this.incompleteItems.Remove(filterItem.FilterNode);
                }
                this.filterNodes.Remove(filterItem.FilterNode);
            }
            if (this.FilterItems.Count == 0)
            {
                this.OnExpressionChanged();
            }
        }