private static string GenerateControlDescription(IQuickFormsControl control, string renameSuggestion) { return string.Format("{0}({1}) [Row={2}, Column={3}]{4}", control.ControlId, control.GetType().Name, control.Row, control.Column, renameSuggestion); }
private string RenameToSuggestion(IQuickFormsControl control) { string suggestion = string.Empty; ControlPair renamedControl = _formComparison.ControlsPossiblyRenamed .Where(rename => rename.OldControl.ControlId == control.ControlId).FirstOrDefault(); if (renamedControl != null) suggestion = " (Possibly renamed to " + renamedControl.NewControl.ControlId + ")"; return suggestion; }