void Command_Files_Hash(HashDialog.Result result) => ReplaceSelections(RelativeSelectedFiles().Select(file => Hasher.Get(file, result.HashType)).ToList());
public static Result Run(Window parent) { var dialog = new HashDialog() { Owner = parent }; return dialog.ShowDialog() == true ? dialog.result : null; }