Example #1
0
 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);
 }
Example #2
0
 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])");
 }
Example #3
0
File: Test2.cs Project: koson/DMI
 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();
 }
Example #4
0
 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);
 }
Example #5
0
 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])");
 }
Example #6
0
 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();
 }