private ToolMenuItem InitQueryTool(QQuery query) { return(new ToolMenuItem { Tag = query, Name = query.GetHashCode().ToString(), Text = query.ToString() }); }