Esempio n. 1
0
        bool CanSeeAll()
        {
            bool c = _repositories.Abbreviations.Count > 0;

            _repositories.Reload();
            return(c && !SeeAllWindow.IsOpen);
        }
Esempio n. 2
0
        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);
        }