public void Execute(object parameter)
 {
     var setSelectionDialog = new SetSelectionWindow(_logSets);
     if (setSelectionDialog.ShowDialog() == true && setSelectionDialog.DialogResult.HasValue)
     {
         var logEvent = (LogEvent) parameter;
         setSelectionDialog.SelectedSet.Add(logEvent);
     }
 }
        public void Execute(object parameter)
        {
            var setSelectionDialog = new SetSelectionWindow(_logSets);

            if (setSelectionDialog.ShowDialog() == true && setSelectionDialog.DialogResult.HasValue)
            {
                var logEvent = (LogEvent)parameter;
                setSelectionDialog.SelectedSet.Add(logEvent);
            }
        }