コード例 #1
0
		void Command_Content_WithAttribute(FindContentAttributeDialog.Result result) => ContentReplaceSelections(GetSelectionNodes().Where(child => child.HasAttr(result.Attribute, result.Regex, result.Invert)));
コード例 #2
0
		void Command_Content_Ancestor(FindContentAttributeDialog.Result result) => ContentReplaceSelections(GetSelectionNodes().SelectMany(node => node.Parents()).Where(child => child.HasAttr(result.Attribute, result.Regex, result.Invert)));
コード例 #3
0
		public static Result Run(Window parent, List<ParserNode> nodes)
		{
			var dialog = new FindContentAttributeDialog(nodes) { Owner = parent };
			return dialog.ShowDialog() ? dialog.result : null;
		}