Example #1
0
            static void ApplyToolStripResources(ToolStripItemCollection items)
            {
                foreach (ToolStripItem item in items)
                {
                    // to self
                    Res.ApplyResources(item, item.Name);

                    // to children
                    if (item is ToolStripDropDownItem dropDownItem)
                    {
                        ApplyToolStripResources(dropDownItem.DropDownItems);
                    }
                }
            }