public LocalePickerToolStripItem(LanguagePickerAction action) : base(new LocalePicker()) { Action = action; Action.AvailableChanged += OnActionAvailableChangedHandler; Action.EnabledChanged += OnActionEnabledChangedHandler; Action.IconSetChanged += OnActionIconSetChangedHandler; Action.LabelChanged += OnActionLabelChangedHandler; Action.TooltipChanged += OnActionTooltipChangedHandler; Action.VisibleChanged += OnActionVisibleChangedHandler; Control.SelectedLocale = Action.SelectedLocale; Control.SelectedLocaleChanged += OnControlSelectedLocaleChanged; UpdateVisibility(); UpdateEnablement(); UpdateLabel(); UpdateTooltip(); UpdateIcon(); }