private void OnAutomationCommandEvent(EventParameters <AutomationCommand> obj) { if (obj.Topic == EventTopicNames.SelectAutomationCommandValue) { CommandValues.Clear(); SetSelectedAutomationCommand(obj.Value); CommandValues.AddRange(obj.Value.Values.Split('|')); if (CommandValues.Count == 1) { OnAutomationCommandValueSelected(CommandValues.ElementAt(0)); return; } RaisePropertyChanged(() => ColumnCount); } }