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"); }
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(); }