public override void Initialize()
 {
     base.Initialize();
     if (m_tempGesture.Activator != null && m_tempGesture.Activator.Type == BaseActivator.Types.WheelButton)
     {
         m_wheelBtnAction = m_tempGesture.Activator;
         if (m_wheelBtnAction.Trigger != MouseButtons.None)
             cB_holdBtn.SelectedIndex = ConvertValue.MouseBtnToIndex(m_wheelBtnAction.Trigger);
         base.RedrawDisplay();
     }
 }
 public UC_TP_wheelBtn()
 {
     InitializeComponent();
     for (int i = 0; i < ConvertValue.MouseButtonsCount; i++)
         cB_holdBtn.Items.Add(Translation.GetMouseBtnText(ConvertValue.IndexToMouseBtn(i)));
     m_wheelBtnAction = new WheelButton(MouseButtons.None);
     lbl_holdBtn.Text = Translation.Name_WheelHoldDownBtn;
     rTB_pushHoldBtn.Text = Translation.GetText("C_WheelG_pushHoldBtn");
     rTB_scrollWheel.Text = Translation.GetText("C_WheelG_scrollWithWheel");
     rTB_releaseHoldBtn.Text = Translation.GetText("C_WheelG_releaseHoldBtn");
     cH_associatedActions.Text = Translation.GetText("C_Gestures_cH_associatedActions");
     cH_group.Text = Translation.GetText("C_Gestures_cH_group");
 }
        private void cB_trigger_SelectedIndexChanged(object sender, EventArgs e)
        {
            MouseButtons trigger = MouseButtons.None;
            if (cB_holdBtn.SelectedItem != null)
                trigger = ConvertValue.IndexToMouseBtn(cB_holdBtn.SelectedIndex);

            m_tempGesture.Activator = new WheelButton(trigger);
            m_wheelBtnAction = m_tempGesture.Activator;
            base.RedrawDisplay();
            lV_buttonMatchedGestures.Items.Clear();
            List<MyGesture> matchedGest = m_gesturesCollection.MatchedGestures(m_tempGesture.Activator.ID);
            if (matchedGest != null)
                foreach (MyGesture gest in matchedGest)
                {
                    lV_buttonMatchedGestures.Items.Add(new ListViewItem(new string[] { gest.Caption, gest.AppGroup.Caption }));
                }

            if (trigger == MouseButtons.None)
                OnCanContinue(false);
            else
                OnCanContinue(true);
        }