bool CanSeeAll() { bool c = _repositories.Abbreviations.Count > 0; _repositories.Reload(); return(c && !SeeAllWindow.IsOpen); }
public object?Convert(object[] values, Type targetType, object parameter, CultureInfo culture) { if (values == null || values.Length != 2 || values[0] is not BaseAbbreviation || values[1] is not string) { return(null); } var a = (BaseAbbreviation)values[0]; var sf = (string)values[1]; string?ff = a.GetFullForm(sf, _repositories.Linguistics); _repositories.Reload(); return(string.IsNullOrEmpty(ff) ? a.FullForm : ff); }