Exemple #1
0
        static void RaiseOnLanguageChanged()
        {
            if (LanguageChanged == null)
            {
                return;
            }

            Delegate[] delegates = LanguageChanged.GetInvocationList();

            foreach (Delegate d in delegates)
            {
                System.Windows.Forms.Control ctrl = d.Target as System.Windows.Forms.Control;

                if (ctrl == null || !ctrl.IsDisposed)
                {
                    d.DynamicInvoke(null);
                }
            }
        }