예제 #1
0
        bool _anyDelegatesShouldReload(Localizations old)
        {
            if (this.widget.delegates.Count != old.delegates.Count)
            {
                return(true);
            }

            List <LocalizationsDelegate> delegates    = this.widget.delegates.ToList();
            List <LocalizationsDelegate> oldDelegates = old.delegates.ToList();

            for (int i = 0; i < delegates.Count; i += 1)
            {
                LocalizationsDelegate del         = delegates[i];
                LocalizationsDelegate oldDelegate = oldDelegates[i];
                if (del.GetType() != oldDelegate.GetType() || del.shouldReload(oldDelegate))
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
 public override bool shouldReload(LocalizationsDelegate old)
 {
     return(false);
 }