public void RaiseFilterChangedEvent(DateTime StartDateRange, DateTime EndDateRange) { FilterChangedHandler eh = FilterChanged; if (eh != null) { FilterChangedEventArgs args = new FilterChangedEventArgs(StartDateRange, EndDateRange); eh(this, args); } }
private void FilterOnFilterChanged(object sender, FilterChangedEventArgs args) { var clauseNode = (args.CurrentNode) as ClauseNode; if (clauseNode != null && recursive && clauseNode.Operation == ClauseType.AnyOf && args.Action == FilterChangedAction.ValueChanged) { recursive = false; string propertyName = ((ClauseNode)args.CurrentNode).FirstOperand.PropertyName; var inOperator = (InOperator)FilterControlHelpers.ToCriteria(args.CurrentNode); List<ITreeNode> allChildTreeNodes = GetAllChildTreeNodes(inOperator, propertyName); if (allChildTreeNodes.Count > 0) ((FilterControl)sender).FilterCriteria = new InOperator(propertyName, allChildTreeNodes); RecursiveFilterPopLookUpTreeSelectionSimpleAction.Active[ClauseType.AnyOf.ToString()] = true; } }
public void RaiseFilterChangedEvent(int Month, string MonthName, int Year) { FilterChangedHandler eh = FilterChanged; if (eh != null) { FilterChangedEventArgs args = new FilterChangedEventArgs(Month, MonthName, Year); eh(this, args); } }
private void OnOnNotifyControl(FilterChangedEventArgs info){ if (info.Action == FilterChangedAction.RebuildWholeTree && info.CurrentNode == null&&!_isUpdating){ var criteriaOperator = ((IXpandFilterControl)Control).Criteria(); if (criteriaOperator!=null){ _isUpdating = true; BeginUpdate(); RootNode = null; var processor = new XpandCriteriaToTreeProcessor(CreateNodesFactory(), new List<CriteriaOperator>()); var node = (Node) processor.ProcessX(criteriaOperator); if (AllowCreateDefaultClause && node == null){ node = CreateCriteriaByDefaultProperty(); } RootNode = node as GroupNode; if (RootNode == null){ RootNode = CreateGroupNode(null); if (node != null){ RootNode.AddNode(node); } } FocusInfo = new FilterControlFocusInfo(RootNode, 0); EndUpdate(FilterChangedAction.RebuildWholeTree); _isUpdating = false; } } }
void IXpandFilterControl.RaiseFilterChanged(FilterChangedEventArgs args) { RaiseFilterChanged(args); }
private void filterAdded(object sender, FilterChangedEventArgs<IMaxNode> args) { FilterCollection<IMaxNode> collection = sender as FilterCollection<IMaxNode>; if (collection != null) { Tree.TreeNode parentTn; if (this.treeNodes.TryGetValue(collection.Owner, out parentTn)) { this.AddFilterToTree(args.Filter, parentTn.Nodes); if (this.UpdateAction != null) this.UpdateAction(); } } }
private void filterRemoved(object sender, FilterChangedEventArgs<IMaxNode> args) { Tree.TreeNode tn; if (this.treeNodes.TryGetValue(args.Filter, out tn)) { tn.Remove(); this.treeNodes.Remove(args.Filter); if (this.UpdateAction != null) this.UpdateAction(); } }
public void FilterReset(object sender, FilterChangedEventArgs fa) { resetAll(); }
private void OnFilterControlFilterChanged(object sender, FilterChangedEventArgs e) { sbOK.Enabled = sbApply.Enabled = true; ((FilterControl)fcMain).FilterChanged -= new FilterChangedEventHandler(OnFilterControlFilterChanged); }
/// <summary> /// Applies the file/directory filter from the combobox on the listview entries. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void FileViewFilter_Changed(object sender, FilterChangedEventArgs e) { this.FolderItemsView.ApplyFilter(e.FilterText); }
void IXpandFilterControl.RaiseFilterChanged(FilterChangedEventArgs args) { RaiseFilterChanged(args); }
private void filterControl_FilterChanged(object sender, FilterChangedEventArgs e) { lblFilterCriteria.Text = filterControl.FilterCriteria.LegacyToString(); }