Exemplo n.º 1
0
		/* === MANAGING LOCALIZABLE OBSERVERS === */
		
		/// <summary> Register a Localizable to receive updates when the locale is changed. If the Localizable is already
		/// registered, nothing happens. If a locale is currently set, the new Localizable will receive an
		/// immediate 'locale changed' event.
		/// 
		/// </summary>
		/// <param name="l">Localizable to register.
		/// </param>
		public virtual void  registerLocalizable(Localizable l)
		{
			if (!observers.Contains(l))
			{
				observers.Add(l);
				if (currentLocale != null)
				{
					l.localeChanged(currentLocale, this);
				}
			}
		}