void CreateBarItem(string caption, string filterString) { BarButtonItem item = new BarButtonItem(this.Manager, caption); item.Tag = filterString; item.CloseSubMenuOnClick = false; ItemLinks.Add(item); filterManager.AddBarItem(item, view.Columns["Date"], filterString); }
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(); }