internal void Cleanup() { Registration.CopyFrom(GadgetRegistration.CreateDefault); ContentTestItemsSource.Clear(); ContentTestSelectedIndex = -1; ContentTestTargetCurrent.CopyFrom(GadgetTest.CreateDefault); ContentTargetItemsSource.Clear(); ContentTargetSelectedIndex = -1; SlideIndex = -1; SelectorContentTestEnabled = false; SelectorContentTestChecked = false; SelectorContentTargetEnabled = false; SelectorContentTargetChecked = false; m_FullCollection.Clear(); m_SelectorContentTestDone = false; m_SelectorContentTargetDone = false; }
internal void SelectorContentTargetIsChecked() { SlideIndex = 1; if (m_SelectorContentTargetDone.IsFalse()) { m_SelectorContentTargetDone = true; ContentTargetItemsSource.Clear(); foreach (var item in m_FullCollection) { if (item.HasContentTarget) { ContentTargetItemsSource.Add(item); } } if (ContentTargetItemsSource.Any()) { ContentTargetSelectedIndex = 0; } } }