示例#1
0
        ///<summary>
        /// A form or user control should call this in its constructor if it wants to localize
        /// context menus that are set on the fly and not assigned to a forms control in design
        /// studio.
        /// MyForm::MyForm()
        /// {
        ///   SuspendLayout();
        ///   InitializeComponent();
        ///   Rhino.UI.Localize.LocalizeToolStripItemCollection( this, this.MyToolStrip.Items );
        /// }
        ///</summary>
        public static void LocalizeToolStripItemCollection(Control parent, ToolStripItemCollection collection)
        {
            Assembly assembly = null == collection ? null : collection.GetType().Assembly;

            LocalizationUtils.LocalizeToolStripItemCollection(assembly, CurrentLanguageID, parent, collection);
        }