protected string localizeWindow(RowType row, string x) { if (row == null || x == null || row.LocalizationType == null) { return(x); } var localizer = row.GetLocalizer(factory); return(localizer[x]); }