Exemplo n.º 1
0
        private void Ib_MouseClick(object sender, MouseEventArgs e)
        {
            int idx = ((IconButton)sender).Index;

            //MessageBox.Show(string.Format("idx{0}", idx));
            if (m_SelectedIndex >= 0)
            {
                m_List[m_SelectedIndex].Active = false;
                m_List[m_SelectedIndex].Invalidate();
            }
            m_SelectedIndex = idx;
            if (m_SelectedIndex >= 0)
            {
                m_List[m_SelectedIndex].Active = true;
                m_List[m_SelectedIndex].Invalidate();
            }


            SelectedIndexChangedArgs r = new SelectedIndexChangedArgs();

            r.SelectedIndex = m_SelectedIndex;
            r.Count         = m_List.Count;
            OnSelectedIndex(r);


            this.Invalidate();
        }
Exemplo n.º 2
0
 protected virtual void OnSelectedIndex(SelectedIndexChangedArgs e)
 {
     SelectedIndexChanged?.Invoke(this, e);
 }
Exemplo n.º 3
0
 private void M_IconButonList_SelectedIndexChanged(object sender, SelectedIndexChangedArgs e)
 {
     EnabledChk();
 }