ACAT.Extensions.Default.UI.Dialogs.MouseGridSettingsForm.subscribeToEvents C# (CSharp) Method

subscribeToEvents() private method

Subscribes to all the events triggered by the widgets and the interpreter
private subscribeToEvents ( ) : void
return void
        private void subscribeToEvents()
        {
            var widgetList = new List<Widget>();
            _dialogCommon.GetRootWidget().Finder.FindAllButtons(widgetList);

            foreach (var widget in widgetList)
            {
                widget.EvtValueChanged += widget_EvtValueChanged;
            }

            widgetList.Clear();
            _dialogCommon.GetRootWidget().Finder.FindAllChildren(typeof(SliderWidget), widgetList);

            foreach (var widget in widgetList)
            {
                widget.EvtValueChanged += widget_EvtValueChanged;
            }
        }