コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: Test2.cs プロジェクト: 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();
 }
コード例 #3
0
ファイル: Mail.cs プロジェクト: treejames/MESDemo
 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();
 }