public FilterCriteriaItem(FilterCriteriaManager owner, BarButtonItem item, GridColumn column, string filterCriteria) { this.item = item; this.column = column; this.filterCriteria = filterCriteria; this.owner = owner; item.ButtonStyle = BarButtonStyle.Check; item.ItemClick += new ItemClickEventHandler(item_ItemClick); }
public DateFilterMenu(BarManager manager, GridView view, FilterCriteriaManager filterManager) : base(manager) { this.view = view; this.filterManager = filterManager; CreateBarItem(Properties.Resources.IsToday, "IsOutlookIntervalToday([Date])"); CreateBarItem(Properties.Resources.IsYesterday, "IsOutlookIntervalYesterday([Date])"); CreateBarItem(Properties.Resources.IsEarlierThisWeek, "IsOutlookIntervalEarlierThisWeek([Date])"); CreateBarItem(Properties.Resources.IsLastWeek, "IsOutlookIntervalLastWeek([Date])"); CreateBarItem(Properties.Resources.IsEarlierThisMonth, "IsOutlookIntervalEarlierThisMonth([Date])"); CreateBarItem(Properties.Resources.IsEarlierThisYear, "IsOutlookIntervalEarlierThisYear([Date])"); }
internal override void ShowModule(bool firstShow) { base.ShowModule(firstShow); if (firstShow) { filterCriteriaManager = new FilterCriteriaManager(gridView1); filterCriteriaManager.AddBarItem(OwnerForm.ShowUnreadItem, gcIcon, "[Read] = 0"); filterCriteriaManager.AddBarItem(OwnerForm.ImportantItem, gcPriority, "[Priority] = 2"); filterCriteriaManager.AddBarItem(OwnerForm.HasAttachmentItem, gcAttachment, "[Attachment] = 1"); filterCriteriaManager.AddClearFilterButton(OwnerForm.ClearFilterItem); SetPriorityMenu(); SetDateFilterMenu(); OwnerForm.FilterColumnManager.InitGridView(gridView1); } else { lockUpdateCurrentMessage = false; FocusRow(focusedRowHandle); } gridControl1Test2.Focus(); }
internal override void ShowModule(bool firstShow) { base.ShowModule(firstShow); if(firstShow) { filterCriteriaManager = new FilterCriteriaManager(gridView1); filterCriteriaManager.AddBarItem(OwnerForm.ShowUnreadItem, gcIcon, "[Read] = 0"); filterCriteriaManager.AddBarItem(OwnerForm.ImportantItem, gcPriority, "[Priority] = 2"); filterCriteriaManager.AddBarItem(OwnerForm.HasAttachmentItem, gcAttachment, "[Attachment] = 1"); filterCriteriaManager.AddClearFilterButton(OwnerForm.ClearFilterItem); SetPriorityMenu(); SetDateFilterMenu(); OwnerForm.FilterColumnManager.InitGridView(gridView1); } else { lockUpdateCurrentMessage = false; FocusRow(focusedRowHandle); } gridControl1.Focus(); }