Example #1
0
        public void OnButtonClick(object sender, EventArgs e)
        {
            var control = sender as ToolStripButton;

            if (control != null)
            {
                var commandId = control.Tag as string;
                _eventAggregator.PublishEvent <CommandSelectedAggregatedEvent>(CommandSelectedAggregatedEvent.Create(commandId));
            }
        }