예제 #1
0
        void DisplayMenu(FilterControl filterControl)
        {
            var groupNode = filterControl.Model.RootNode;

            if (!groupNode.SubNodes.Any())
            {
                filterControl.SetDefaultColumn(filterControl.FilterColumns[Frame.View.ObjectTypeInfo.DefaultMember.Name]);
                groupNode.AddNode(filterControl.Model.CreateCriteriaByDefaultProperty());
            }
            filterControl.Model.FocusInfo = new FilterControlFocusInfo((Node)groupNode.SubNodes[0], 1);
            System.Windows.Forms.Application.DoEvents();
            filterControl.CallMethod("ShowClauseMenu");
        }
예제 #2
0
 void DisplayMenu(FilterControl filterControl){
     var groupNode = filterControl.Model.RootNode;
     if (!groupNode.SubNodes.Any()){
         filterControl.SetDefaultColumn(filterControl.FilterColumns[Frame.View.ObjectTypeInfo.DefaultMember.Name]);
         groupNode.AddNode(filterControl.Model.CreateCriteriaByDefaultProperty());
     }
     filterControl.Model.FocusInfo = new FilterControlFocusInfo((Node) groupNode.SubNodes[0], 1);
     System.Windows.Forms.Application.DoEvents();
     filterControl.CallMethod("ShowClauseMenu");
     System.Windows.Forms.Application.DoEvents();
 }