private void SendBoxTickSelectionEvent() { var tickedOptions = new List <Option>(); var index = 0; foreach (var ticked in _options.Values) { if (ticked) { tickedOptions.Add(GetOptionFromIndex(index)); } index++; } var eventArgs = new BoxOptionSelectedEventArgs { Options = tickedOptions }; OnBoxOptionSelect(eventArgs); }
/** * Event method called when the box selection option * is called * */ protected virtual void OnBoxOptionSelect(BoxOptionSelectedEventArgs e) { BoxOptionSelect?.Invoke(this, e); }