/// <summary> /// Binds the adapter to the adaptable control. Called in the order that the adapters /// were defined on the control</summary> /// <param name="control">Adaptable control</param> protected override void Bind(AdaptableControl control) { // get picking adapters in reverse order on the control m_pickingAdapters = control.AsAll <IPickingAdapter>().ToArray(); Array.Reverse(m_pickingAdapters); m_pickingAdapters2 = control.AsAll <IPickingAdapter2>().ToArray(); Array.Reverse(m_pickingAdapters2); m_dragSelector = control.As <IDragSelector>(); if (m_dragSelector != null) { m_dragSelector.Selected += dragSelector_Selected; } control.ContextChanged += control_ContextChanged; }
/// <summary> /// Binds the adapter to the adaptable control. Called in the order that the adapters /// were defined on the control.</summary> /// <param name="control">Adaptable control</param> protected override void Bind(AdaptableControl control) { control.ContextChanged += control_ContextChanged; m_pickingAdapters = control.AsAll <IPickingAdapter2>().ToArray(); Array.Reverse(m_pickingAdapters); }