public static string ToAutomationId(int numberOfOptions, DialogResult result) { if (result == DialogResult.OK && numberOfOptions == 1) { return(DialogResult.Cancel.GetHashCode().ToString()); } return(result.GetHashCode().ToString()); }
public override int GetHashCode() { return(DialogResult.GetHashCode() + WindowTag.GetHashCode()); }