/// <summary>
        /// Tries the find experiment from the given combobox item.
        /// </summary>
        /// <param name="comboBoxItem">The combo box item.</param>
        /// <param name="experiment">The experiment.</param>
        /// <returns>true if experiment has been found</returns>
        private static bool TryFindExperiment(ComboBoxItem comboBoxItem, out IExperiment experiment)
        {
            bool found = false;

            experiment = null;

            if (comboBoxItem != null)
            {
                //find combobox
                var combobox = comboBoxItem.GetParent <ItemsPresenter>(null);
                if (combobox != null)
                {
                    if (TryFindExperiment(combobox.TemplatedParent, out experiment))
                    {
                        found = true;
                    }
                }
            }

            return(found);
        }